Bazaar developer reference

CvLuaCity::lGetX(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 1918
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lGetX

Hooks

static bool BeforeCvLuaCity_lGetX(lua_State* L, int& result);static void AfterCvLuaCity_lGetX(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetX(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetX>(host, &BeforeCvLuaCity_lGetX);CivRegisterAfter<CivHooks::CvLuaCity_lGetX>(host, &AfterCvLuaCity_lGetX);CivRegisterReplace<CivHooks::CvLuaCity_lGetX>(host, &ReplaceCvLuaCity_lGetX);

Code

1917//int getX();1918int CvLuaCity::lGetX(lua_State* L)1919{1920	CvCity* pkCity = GetInstance(L);1921	const int iResult = pkCity->getX();19221923	lua_pushinteger(L, iResult);1924	return 1;1925}

Calls

Called by