Bazaar developer reference

CvLuaPlayer::lGetNotificationStr(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 9105
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lGetNotificationStr

Hooks

static bool BeforeCvLuaPlayer_lGetNotificationStr(lua_State* L, int& result);static void AfterCvLuaPlayer_lGetNotificationStr(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lGetNotificationStr(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lGetNotificationStr>(host, &BeforeCvLuaPlayer_lGetNotificationStr);CivRegisterAfter<CivHooks::CvLuaPlayer_lGetNotificationStr>(host, &AfterCvLuaPlayer_lGetNotificationStr);CivRegisterReplace<CivHooks::CvLuaPlayer_lGetNotificationStr>(host, &ReplaceCvLuaPlayer_lGetNotificationStr);

Code

9104//CvString GetNotificationStr();9105int CvLuaPlayer::lGetNotificationStr(lua_State* L)9106{9107	CvPlayerAI* pkPlayer = GetInstance(L);9108	int iIndex = lua_tointeger(L, 2);91099110	lua_pushstring(L, pkPlayer->GetNotifications()->GetNotificationStr(iIndex));9111	return 1;9112}

Calls

Called by