Bazaar developer reference

CvLuaCity::lGetProductionNameKey(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 1260
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lGetProductionNameKey

Hooks

static bool BeforeCvLuaCity_lGetProductionNameKey(lua_State* L, int& result);static void AfterCvLuaCity_lGetProductionNameKey(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetProductionNameKey(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetProductionNameKey>(host, &BeforeCvLuaCity_lGetProductionNameKey);CivRegisterAfter<CivHooks::CvLuaCity_lGetProductionNameKey>(host, &AfterCvLuaCity_lGetProductionNameKey);CivRegisterReplace<CivHooks::CvLuaCity_lGetProductionNameKey>(host, &ReplaceCvLuaCity_lGetProductionNameKey);

Code

1259//string getProductionNameKey();1260int CvLuaCity::lGetProductionNameKey(lua_State* L)1261{1262	CvCity* pkCity = GetInstance(L);1263	lua_pushstring(L, pkCity->getProductionNameKey());1264	return 1;1265}

Calls

Called by