Bazaar developer reference

CvLuaCity::lGetBuyPlotCost(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 2078
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lGetBuyPlotCost

Hooks

static bool BeforeCvLuaCity_lGetBuyPlotCost(lua_State* L, int& result);static void AfterCvLuaCity_lGetBuyPlotCost(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetBuyPlotCost(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetBuyPlotCost>(host, &BeforeCvLuaCity_lGetBuyPlotCost);CivRegisterAfter<CivHooks::CvLuaCity_lGetBuyPlotCost>(host, &AfterCvLuaCity_lGetBuyPlotCost);CivRegisterReplace<CivHooks::CvLuaCity_lGetBuyPlotCost>(host, &ReplaceCvLuaCity_lGetBuyPlotCost);

Code

2077//int GetBuyPlotCost()2078int CvLuaCity::lGetBuyPlotCost(lua_State* L)2079{2080	CvCity* pkCity = GetInstance(L);2081	const int iX = lua_tointeger(L, 2);2082	const int iY = lua_tointeger(L, 3);2083	lua_pushinteger(L, pkCity->GetBuyPlotCost(iX, iY));2084	return 1;2085}

Calls

Called by