CvLuaPlayer::lGetNotificationTurn(lua_State *)
- Defined in
- Lua/CvLuaPlayer.cpp, line 9134
- Class
- CvLuaPlayer
- Hook name
CivHooks::CvLuaPlayer_lGetNotificationTurn
Hooks
static bool BeforeCvLuaPlayer_lGetNotificationTurn(lua_State* L, int& result);static void AfterCvLuaPlayer_lGetNotificationTurn(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lGetNotificationTurn(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lGetNotificationTurn>(host, &BeforeCvLuaPlayer_lGetNotificationTurn);CivRegisterAfter<CivHooks::CvLuaPlayer_lGetNotificationTurn>(host, &AfterCvLuaPlayer_lGetNotificationTurn);CivRegisterReplace<CivHooks::CvLuaPlayer_lGetNotificationTurn>(host, &ReplaceCvLuaPlayer_lGetNotificationTurn);
Code
9133//int GetNotificationTurn();9134int CvLuaPlayer::lGetNotificationTurn(lua_State* L)9135{9136 CvPlayerAI* pkPlayer = GetInstance(L);9137 int iIndex = lua_tointeger(L, 2);91389139 lua_pushinteger(L, pkPlayer->GetNotifications()->GetNotificationTurn(iIndex));9140 return 1;9141}
Calls
CvLuaScopedInstance::GetInstance- CvNotifications::GetNotificationTurn(int)
- CvPlayer::GetNotifications() const
lua_pushintegerlua_tointeger