diff options
Diffstat (limited to 'Runtime/Lua/LuaHelper.cpp')
-rw-r--r-- | Runtime/Lua/LuaHelper.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Runtime/Lua/LuaHelper.cpp b/Runtime/Lua/LuaHelper.cpp index 53bea3f..e458e28 100644 --- a/Runtime/Lua/LuaHelper.cpp +++ b/Runtime/Lua/LuaHelper.cpp @@ -3,9 +3,9 @@ using namespace LuaBind;
template <> -Rectf State::GetValue < Rectf >(int idx, const Rectf value)
+Rect State::GetValue < Rect >(int idx, const Rect value)
{
- Rectf rect;
+ Rect rect;
rect.x = GetField<float>(idx, 1, 0); rect.y = GetField<float>(idx, 2, 0); rect.width = GetField<float>(idx, 3, 0); @@ -14,9 +14,9 @@ Rectf State::GetValue < Rectf >(int idx, const Rectf value) }
template <> -Vector2f State::GetValue < Vector2f >(int idx, const Vector2f value)
+Vector2 State::GetValue < Vector2 >(int idx, const Vector2 value)
{
- Vector2f v2; + Vector2 v2; v2.x = GetField<float>(idx, 1, 0); v2.y = GetField<float>(idx, 2, 0); return v2;
|