Bazaar developer reference

CvLuaPlayer::lGetNotificationSummaryStr(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 9114
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lGetNotificationSummaryStr

Hooks

static bool BeforeCvLuaPlayer_lGetNotificationSummaryStr(lua_State* L, int& result);static void AfterCvLuaPlayer_lGetNotificationSummaryStr(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lGetNotificationSummaryStr(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lGetNotificationSummaryStr>(host, &BeforeCvLuaPlayer_lGetNotificationSummaryStr);CivRegisterAfter<CivHooks::CvLuaPlayer_lGetNotificationSummaryStr>(host, &AfterCvLuaPlayer_lGetNotificationSummaryStr);CivRegisterReplace<CivHooks::CvLuaPlayer_lGetNotificationSummaryStr>(host, &ReplaceCvLuaPlayer_lGetNotificationSummaryStr);

Code

9114int CvLuaPlayer::lGetNotificationSummaryStr(lua_State* L)9115{9116	CvPlayerAI* pkPlayer = GetInstance(L);9117	int iIndex = lua_tointeger(L, 2);91189119	lua_pushstring(L, pkPlayer->GetNotifications()->GetNotificationSummary(iIndex));9120	return 1;9121}

Calls

Called by