Bazaar developer reference

CvLuaCity::lGetArtStyleType(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 1686
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lGetArtStyleType

Hooks

static bool BeforeCvLuaCity_lGetArtStyleType(lua_State* L, int& result);static void AfterCvLuaCity_lGetArtStyleType(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetArtStyleType(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetArtStyleType>(host, &BeforeCvLuaCity_lGetArtStyleType);CivRegisterAfter<CivHooks::CvLuaCity_lGetArtStyleType>(host, &AfterCvLuaCity_lGetArtStyleType);CivRegisterReplace<CivHooks::CvLuaCity_lGetArtStyleType>(host, &ReplaceCvLuaCity_lGetArtStyleType);

Code

1685//ArtStyleTypes getArtStyleType()1686int CvLuaCity::lGetArtStyleType(lua_State* L)1687{1688	CvCity* pkCity = GetInstance(L);1689	const ArtStyleTypes eValue = pkCity->getArtStyleType();16901691	lua_pushinteger(L, eValue);1692	return 1;1693}

Calls

Called by