CvLuaGame::lSetGameState(lua_State *)
- Defined in
- Lua/CvLuaGame.cpp, line 1347
- Class
- CvLuaGame
- Hook name
CivHooks::CvLuaGame_lSetGameState
Hooks
static bool BeforeCvLuaGame_lSetGameState(lua_State* L, int& result);static void AfterCvLuaGame_lSetGameState(lua_State* L, int& result);static int ReplaceCvLuaGame_lSetGameState(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaGame_lSetGameState>(host, &BeforeCvLuaGame_lSetGameState);CivRegisterAfter<CivHooks::CvLuaGame_lSetGameState>(host, &AfterCvLuaGame_lSetGameState);CivRegisterReplace<CivHooks::CvLuaGame_lSetGameState>(host, &ReplaceCvLuaGame_lSetGameState);
Code
1346//void SetGameState(GameplayGameStateTypes gameState);1347int CvLuaGame::lSetGameState(lua_State* L)1348{1349 int iGameState = luaL_checkint(L, 1);1350 GameStateTypes eGameState = static_cast<GameStateTypes>(iGameState);13511352 GC.getGame().setGameState(eGameState);1353 return 0;1354}
Calls
- CvGame::setGameState(GameStateTypes)
- CvGlobals::getGame()
luaL_checkinteger