Bazaar developer reference

CvLuaCity::lGetTotalSlotsTooltip(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 2440
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lGetTotalSlotsTooltip

Hooks

static bool BeforeCvLuaCity_lGetTotalSlotsTooltip(lua_State* L, int& result);static void AfterCvLuaCity_lGetTotalSlotsTooltip(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetTotalSlotsTooltip(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetTotalSlotsTooltip>(host, &BeforeCvLuaCity_lGetTotalSlotsTooltip);CivRegisterAfter<CivHooks::CvLuaCity_lGetTotalSlotsTooltip>(host, &AfterCvLuaCity_lGetTotalSlotsTooltip);CivRegisterReplace<CivHooks::CvLuaCity_lGetTotalSlotsTooltip>(host, &ReplaceCvLuaCity_lGetTotalSlotsTooltip);

Code

2439//CvString GetTotalSlotsTooltip();2440int CvLuaCity::lGetTotalSlotsTooltip(lua_State* L)2441{2442	CvString toolTip;2443	CvCity* pkCity = GetInstance(L);2444	toolTip = pkCity->GetCityCulture()->GetTotalSlotsTooltip();2445	lua_pushstring(L, toolTip.c_str());2446	return 1;2447}

Calls

Called by