Hooks
static bool BeforeCvLuaCity_lPopOrder(lua_State* L, int& result);static void AfterCvLuaCity_lPopOrder(lua_State* L, int& result);static int ReplaceCvLuaCity_lPopOrder(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lPopOrder>(host, &BeforeCvLuaCity_lPopOrder);CivRegisterAfter<CivHooks::CvLuaCity_lPopOrder>(host, &AfterCvLuaCity_lPopOrder);CivRegisterReplace<CivHooks::CvLuaCity_lPopOrder>(host, &ReplaceCvLuaCity_lPopOrder);
Code
4134//void popOrder(int iNum, bool bFinish, bool bChoose);4135int CvLuaCity::lPopOrder(lua_State* L)4136{4137 CvCity* pkCity = GetInstance(L);4138 const int iNum = lua_tointeger(L, 2);4139 const bool bFinish = luaL_optint(L, 3, 0);4140 const bool bChoose = luaL_optint(L, 4, 0);4141 pkCity->popOrder(iNum, bFinish, bChoose);41424143 return 1;4144}