Bazaar developer reference

CvLuaLeague::lGetLeagueSplashDescription(lua_State *)

Defined in
Lua/CvLuaLeague.cpp, line 820
Class
CvLuaLeague
Hook name
CivHooks::CvLuaLeague_lGetLeagueSplashDescription

Hooks

static bool BeforeCvLuaLeague_lGetLeagueSplashDescription(lua_State* L, int& result);static void AfterCvLuaLeague_lGetLeagueSplashDescription(lua_State* L, int& result);static int ReplaceCvLuaLeague_lGetLeagueSplashDescription(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaLeague_lGetLeagueSplashDescription>(host, &BeforeCvLuaLeague_lGetLeagueSplashDescription);CivRegisterAfter<CivHooks::CvLuaLeague_lGetLeagueSplashDescription>(host, &AfterCvLuaLeague_lGetLeagueSplashDescription);CivRegisterReplace<CivHooks::CvLuaLeague_lGetLeagueSplashDescription>(host, &ReplaceCvLuaLeague_lGetLeagueSplashDescription);

Code

819//string GetLeagueSplashDescription(LeagueSpecialSessionTypes eGoverningSpecialSession, bool bJustFounded);820int CvLuaLeague::lGetLeagueSplashDescription(lua_State* L)821{822	CvLeague* pLeague = GetInstance(L);823	const LeagueSpecialSessionTypes eGoverningSpecialSession = (LeagueSpecialSessionTypes) lua_tointeger(L, 2);824	const bool bJustFounded = lua_toboolean(L, 3);825826	CvString sValue = pLeague->GetLeagueSplashDescription(eGoverningSpecialSession, bJustFounded);827	lua_pushstring(L, sValue.c_str());828	return 1;829}

Calls

Called by