Bazaar developer reference

CvLuaPlayer::lGetNumNotifications(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 9097
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lGetNumNotifications

Hooks

static bool BeforeCvLuaPlayer_lGetNumNotifications(lua_State* L, int& result);static void AfterCvLuaPlayer_lGetNumNotifications(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lGetNumNotifications(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lGetNumNotifications>(host, &BeforeCvLuaPlayer_lGetNumNotifications);CivRegisterAfter<CivHooks::CvLuaPlayer_lGetNumNotifications>(host, &AfterCvLuaPlayer_lGetNumNotifications);CivRegisterReplace<CivHooks::CvLuaPlayer_lGetNumNotifications>(host, &ReplaceCvLuaPlayer_lGetNumNotifications);

Code

9096//int GetNumNotifications();9097int CvLuaPlayer::lGetNumNotifications(lua_State* L)9098{9099	CvPlayerAI* pkPlayer = GetInstance(L);9100	lua_pushinteger(L, pkPlayer->GetNotifications()->GetNumNotifications());9101	return 1;9102}

Calls

Called by