mirror of
https://github.com/glest/glest-source.git
synced 2025-08-16 05:13:59 +02:00
added some new lua methods to determine day or night and new event
This commit is contained in:
@@ -100,6 +100,7 @@ public:
|
||||
int getReturnCount() const {return returnCount;}
|
||||
|
||||
void returnInt(int value);
|
||||
void returnFloat(float value);
|
||||
void returnString(const string &value);
|
||||
void returnVec2i(const Vec2i &value);
|
||||
void returnVec4i(const Vec4i &value);
|
||||
|
@@ -930,6 +930,13 @@ void LuaArguments::returnInt(int value){
|
||||
lua_pushinteger(luaState, value);
|
||||
}
|
||||
|
||||
void LuaArguments::returnFloat(float value){
|
||||
Lua_STREFLOP_Wrapper streflopWrapper;
|
||||
|
||||
++returnCount;
|
||||
lua_pushnumber(luaState, value);
|
||||
}
|
||||
|
||||
void LuaArguments::returnString(const string &value){
|
||||
Lua_STREFLOP_Wrapper streflopWrapper;
|
||||
|
||||
|
Reference in New Issue
Block a user