SetGlobal(float)
This commit is contained in:
@@ -62,6 +62,14 @@ void LuaManager::SetGlobal( const CString &sName, int val )
|
|||||||
LUA->Release(L);
|
LUA->Release(L);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LuaManager::SetGlobal( const CString &sName, float val )
|
||||||
|
{
|
||||||
|
Lua *L = LUA->Get();
|
||||||
|
LuaHelpers::PushStack( val, L );
|
||||||
|
lua_setglobal( L, sName );
|
||||||
|
LUA->Release(L);
|
||||||
|
}
|
||||||
|
|
||||||
void LuaManager::SetGlobal( const CString &sName, bool val )
|
void LuaManager::SetGlobal( const CString &sName, bool val )
|
||||||
{
|
{
|
||||||
Lua *L = LUA->Get();
|
Lua *L = LUA->Get();
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ public:
|
|||||||
void ResetState();
|
void ResetState();
|
||||||
|
|
||||||
void SetGlobal( const CString &sName, int val );
|
void SetGlobal( const CString &sName, int val );
|
||||||
|
void SetGlobal( const CString &sName, float val );
|
||||||
void SetGlobal( const CString &sName, bool val );
|
void SetGlobal( const CString &sName, bool val );
|
||||||
void SetGlobal( const CString &sName, const CString &val );
|
void SetGlobal( const CString &sName, const CString &val );
|
||||||
void SetGlobalFromExpression( const CString &sName, const CString &expr );
|
void SetGlobalFromExpression( const CString &sName, const CString &expr );
|
||||||
|
|||||||
Reference in New Issue
Block a user