Bazaar developer reference

CvLuaCity::lGetBuildingPurchaseCost(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 1462
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lGetBuildingPurchaseCost

Hooks

static bool BeforeCvLuaCity_lGetBuildingPurchaseCost(lua_State* L, int& result);static void AfterCvLuaCity_lGetBuildingPurchaseCost(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetBuildingPurchaseCost(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetBuildingPurchaseCost>(host, &BeforeCvLuaCity_lGetBuildingPurchaseCost);CivRegisterAfter<CivHooks::CvLuaCity_lGetBuildingPurchaseCost>(host, &AfterCvLuaCity_lGetBuildingPurchaseCost);CivRegisterReplace<CivHooks::CvLuaCity_lGetBuildingPurchaseCost>(host, &ReplaceCvLuaCity_lGetBuildingPurchaseCost);

Code

1461//int GetPurchaseCost(BuildingTypes eBuilding);1462int CvLuaCity::lGetBuildingPurchaseCost(lua_State* L)1463{1464	return BasicLuaMethod<int, BuildingTypes>(L, &CvCity::GetPurchaseCost);1465}

Calls

Called by