Bazaar developer reference

CvLuaArea::lCountCoastalLand(lua_State *)

Defined in
Lua/CvLuaArea.cpp, line 87
Class
CvLuaArea
Hook name
CivHooks::CvLuaArea_lCountCoastalLand

Hooks

static bool BeforeCvLuaArea_lCountCoastalLand(lua_State* L, int& result);static void AfterCvLuaArea_lCountCoastalLand(lua_State* L, int& result);static int ReplaceCvLuaArea_lCountCoastalLand(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaArea_lCountCoastalLand>(host, &BeforeCvLuaArea_lCountCoastalLand);CivRegisterAfter<CivHooks::CvLuaArea_lCountCoastalLand>(host, &AfterCvLuaArea_lCountCoastalLand);CivRegisterReplace<CivHooks::CvLuaArea_lCountCoastalLand>(host, &ReplaceCvLuaArea_lCountCoastalLand);

Code

86//int countCoastalLand();87int CvLuaArea::lCountCoastalLand(lua_State* L)88{89	CvArea* pkArea = GetInstance(L);9091	const int iResult = pkArea->countCoastalLand();92	lua_pushinteger(L, iResult);93	return 1;94}

Calls

Called by