Bazaar developer reference

CvLuaCity::lGetName(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 3389
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lGetName

Hooks

static bool BeforeCvLuaCity_lGetName(lua_State* L, int& result);static void AfterCvLuaCity_lGetName(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetName(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetName>(host, &BeforeCvLuaCity_lGetName);CivRegisterAfter<CivHooks::CvLuaCity_lGetName>(host, &AfterCvLuaCity_lGetName);CivRegisterReplace<CivHooks::CvLuaCity_lGetName>(host, &ReplaceCvLuaCity_lGetName);

Code

3388//std::string getName();3389int CvLuaCity::lGetName(lua_State* L)3390{3391	CvCity* pkCity = GetInstance(L);3392	lua_pushstring(L, pkCity->getName());3393	return 1;3394}

Calls

Called by