CvLuaLeague::lGetTextForChoice(lua_State *)
- Defined in
- Lua/CvLuaLeague.cpp, line 262
- Class
- CvLuaLeague
- Hook name
CivHooks::CvLuaLeague_lGetTextForChoice
Hooks
static bool BeforeCvLuaLeague_lGetTextForChoice(lua_State* L, int& result);static void AfterCvLuaLeague_lGetTextForChoice(lua_State* L, int& result);static int ReplaceCvLuaLeague_lGetTextForChoice(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaLeague_lGetTextForChoice>(host, &BeforeCvLuaLeague_lGetTextForChoice);CivRegisterAfter<CivHooks::CvLuaLeague_lGetTextForChoice>(host, &AfterCvLuaLeague_lGetTextForChoice);CivRegisterReplace<CivHooks::CvLuaLeague_lGetTextForChoice>(host, &ReplaceCvLuaLeague_lGetTextForChoice);
Code
261//string GetTextForChoice(ResolutionDecisionTypes eDecision, int iChoice);262int CvLuaLeague::lGetTextForChoice(lua_State* L)263{264 CvLeague* pLeague = GetInstance(L);265 const ResolutionDecisionTypes eDecision = (ResolutionDecisionTypes) lua_tointeger(L, 2);266 const int iChoice = lua_tointeger(L, 3);267268 const CvString sResult = pLeague->GetTextForChoice(eDecision, iChoice);269 lua_pushstring(L, sResult);270 return 1;271}
Calls
- CvLeague::GetTextForChoice(ResolutionDecisionTypes, int)
CvLuaScopedInstance::GetInstanceCvString::operator const char *lua_pushstringlua_tointeger