summaryrefslogtreecommitdiff
path: root/Runtime/Lua/LuaHelper.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-28 10:39:31 +0800
committerchai <chaifix@163.com>2021-10-28 10:39:31 +0800
commit8cbcd2dc3f7ea5a1d8656cd3885b553121cb7450 (patch)
tree216433c4e919ecac921e0d1eb3a96e19fc4fd032 /Runtime/Lua/LuaHelper.cpp
parentd162d7711177c414e5ea9a3876dc6fa3414c937e (diff)
*internal
Diffstat (limited to 'Runtime/Lua/LuaHelper.cpp')
-rw-r--r--Runtime/Lua/LuaHelper.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/Runtime/Lua/LuaHelper.cpp b/Runtime/Lua/LuaHelper.cpp
index 9381b6c..a47d528 100644
--- a/Runtime/Lua/LuaHelper.cpp
+++ b/Runtime/Lua/LuaHelper.cpp
@@ -2,23 +2,23 @@
using namespace LuaBind;
-template <>
+template <>
Rect State::GetValue < Rect >(int idx, const Rect value)
{
Rect rect;
- rect.x = GetField<float>(idx, 1, 0);
- rect.y = GetField<float>(idx, 2, 0);
- rect.width = GetField<float>(idx, 3, 0);
- rect.height = GetField<float>(idx, 4, 0);
+ rect.x = GetField<float>(idx, 1, 0);
+ rect.y = GetField<float>(idx, 2, 0);
+ rect.width = GetField<float>(idx, 3, 0);
+ rect.height = GetField<float>(idx, 4, 0);
return rect;
}
-template <>
-Vector2 State::GetValue < Vector2 >(int idx, const Vector2 value)
+template <>
+Internal::Vector2 State::GetValue < Internal::Vector2 >(int idx, const Internal::Vector2 value)
{
- Vector2 v2;
- v2.x = GetField<float>(idx, 1, 0);
- v2.y = GetField<float>(idx, 2, 0);
+ Internal::Vector2 v2;
+ v2.x = GetField<float>(idx, 1, 0);
+ v2.y = GetField<float>(idx, 2, 0);
return v2;
}