Bazaar developer reference

CvLuaPlayer::lGetNotificationIndex(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 9124
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lGetNotificationIndex

Hooks

static bool BeforeCvLuaPlayer_lGetNotificationIndex(lua_State* L, int& result);static void AfterCvLuaPlayer_lGetNotificationIndex(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lGetNotificationIndex(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lGetNotificationIndex>(host, &BeforeCvLuaPlayer_lGetNotificationIndex);CivRegisterAfter<CivHooks::CvLuaPlayer_lGetNotificationIndex>(host, &AfterCvLuaPlayer_lGetNotificationIndex);CivRegisterReplace<CivHooks::CvLuaPlayer_lGetNotificationIndex>(host, &ReplaceCvLuaPlayer_lGetNotificationIndex);

Code

9123//int GetNotificationIndex();9124int CvLuaPlayer::lGetNotificationIndex(lua_State* L)9125{9126	CvPlayerAI* pkPlayer = GetInstance(L);9127	int iIndex = lua_tointeger(L, 2);91289129	lua_pushinteger(L, pkPlayer->GetNotifications()->GetNotificationID(iIndex));9130	return 1;9131}

Calls

Called by