Bazaar developer reference

CvLuaCity::lGetProjectPurchaseCost(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 1474
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lGetProjectPurchaseCost

Hooks

static bool BeforeCvLuaCity_lGetProjectPurchaseCost(lua_State* L, int& result);static void AfterCvLuaCity_lGetProjectPurchaseCost(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetProjectPurchaseCost(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetProjectPurchaseCost>(host, &BeforeCvLuaCity_lGetProjectPurchaseCost);CivRegisterAfter<CivHooks::CvLuaCity_lGetProjectPurchaseCost>(host, &AfterCvLuaCity_lGetProjectPurchaseCost);CivRegisterReplace<CivHooks::CvLuaCity_lGetProjectPurchaseCost>(host, &ReplaceCvLuaCity_lGetProjectPurchaseCost);

Code

1473//int GetPurchaseCost(ProjectTypes eProject);1474int CvLuaCity::lGetProjectPurchaseCost(lua_State* L)1475{1476	return BasicLuaMethod<int, ProjectTypes>(L, &CvCity::GetPurchaseCost);1477}

Calls

Called by