* [PlayerOptions] Added UsingReverse() Lua binding (automatically tests GetReverse() == 1)

* [PlayerState] Added GetCurrentPlayerOptions() Lua binding
This commit is contained in:
AJ Kelly
2011-04-16 21:10:44 -05:00
parent a14d760e0c
commit 445f9a5e32
3 changed files with 15 additions and 4 deletions
+7
View File
@@ -229,6 +229,12 @@ public:
LuaHelpers::Push( L, s );
return 1;
}
static int GetCurrentPlayerOptions( T* p, lua_State *L )
{
PlayerOptions po = p->m_PlayerOptions.GetCurrent();
po.PushSelf(L);
return 1;
}
DEFINE_METHOD( GetHealthState, m_HealthState );
LunaPlayerState()
@@ -239,6 +245,7 @@ public:
ADD_METHOD( GetPlayerOptions );
ADD_METHOD( GetPlayerOptionsArray );
ADD_METHOD( GetPlayerOptionsString );
ADD_METHOD( GetCurrentPlayerOptions );
ADD_METHOD( GetHealthState );
}
};