Bazaar developer reference

CvLuaLeague::lGetLeagueSplashTitle(lua_State *)

Defined in
Lua/CvLuaLeague.cpp, line 808
Class
CvLuaLeague
Hook name
CivHooks::CvLuaLeague_lGetLeagueSplashTitle

Hooks

static bool BeforeCvLuaLeague_lGetLeagueSplashTitle(lua_State* L, int& result);static void AfterCvLuaLeague_lGetLeagueSplashTitle(lua_State* L, int& result);static int ReplaceCvLuaLeague_lGetLeagueSplashTitle(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaLeague_lGetLeagueSplashTitle>(host, &BeforeCvLuaLeague_lGetLeagueSplashTitle);CivRegisterAfter<CivHooks::CvLuaLeague_lGetLeagueSplashTitle>(host, &AfterCvLuaLeague_lGetLeagueSplashTitle);CivRegisterReplace<CivHooks::CvLuaLeague_lGetLeagueSplashTitle>(host, &ReplaceCvLuaLeague_lGetLeagueSplashTitle);

Code

807//string GetLeagueSplashTitle(LeagueSpecialSessionTypes eGoverningSpecialSession, bool bJustFounded);808int CvLuaLeague::lGetLeagueSplashTitle(lua_State* L)809{810	CvLeague* pLeague = GetInstance(L);811	const LeagueSpecialSessionTypes eGoverningSpecialSession = (LeagueSpecialSessionTypes) lua_tointeger(L, 2);812	const bool bJustFounded = lua_toboolean(L, 3);813814	CvString sValue = pLeague->GetLeagueSplashTitle(eGoverningSpecialSession, bJustFounded);815	lua_pushstring(L, sValue.c_str());816	return 1;817}

Calls

Called by