Bazaar developer reference

CvLuaLeague::lGetLeagueSplashThisEraDetails(lua_State *)

Defined in
Lua/CvLuaLeague.cpp, line 832
Class
CvLuaLeague
Hook name
CivHooks::CvLuaLeague_lGetLeagueSplashThisEraDetails

Hooks

static bool BeforeCvLuaLeague_lGetLeagueSplashThisEraDetails(lua_State* L, int& result);static void AfterCvLuaLeague_lGetLeagueSplashThisEraDetails(lua_State* L, int& result);static int ReplaceCvLuaLeague_lGetLeagueSplashThisEraDetails(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaLeague_lGetLeagueSplashThisEraDetails>(host, &BeforeCvLuaLeague_lGetLeagueSplashThisEraDetails);CivRegisterAfter<CivHooks::CvLuaLeague_lGetLeagueSplashThisEraDetails>(host, &AfterCvLuaLeague_lGetLeagueSplashThisEraDetails);CivRegisterReplace<CivHooks::CvLuaLeague_lGetLeagueSplashThisEraDetails>(host, &ReplaceCvLuaLeague_lGetLeagueSplashThisEraDetails);

Code

831//string GetLeagueSplashThisEraDetails(LeagueSpecialSessionTypes eGoverningSpecialSession, bool bJustFounded);832int CvLuaLeague::lGetLeagueSplashThisEraDetails(lua_State* L)833{834	CvLeague* pLeague = GetInstance(L);835	const LeagueSpecialSessionTypes eGoverningSpecialSession = (LeagueSpecialSessionTypes) lua_tointeger(L, 2);836	const bool bJustFounded = lua_toboolean(L, 3);837838	CvString sValue = pLeague->GetLeagueSplashThisEraDetails(eGoverningSpecialSession, bJustFounded);839	lua_pushstring(L, sValue.c_str());840	return 1;841}

Calls

Called by