Bazaar developer reference

CvLuaPlot::lGetContinentArtType(lua_State *)

Defined in
Lua/CvLuaPlot.cpp, line 2001
Class
CvLuaPlot
Hook name
CivHooks::CvLuaPlot_lGetContinentArtType

Hooks

static bool BeforeCvLuaPlot_lGetContinentArtType(lua_State* L, int& result);static void AfterCvLuaPlot_lGetContinentArtType(lua_State* L, int& result);static int ReplaceCvLuaPlot_lGetContinentArtType(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlot_lGetContinentArtType>(host, &BeforeCvLuaPlot_lGetContinentArtType);CivRegisterAfter<CivHooks::CvLuaPlot_lGetContinentArtType>(host, &AfterCvLuaPlot_lGetContinentArtType);CivRegisterReplace<CivHooks::CvLuaPlot_lGetContinentArtType>(host, &ReplaceCvLuaPlot_lGetContinentArtType);

Code

2001int CvLuaPlot::lGetContinentArtType(lua_State* L)2002{2003	CvPlot* pkThisPlot = GetInstance(L);2004	if(pkThisPlot)2005	{2006		lua_pushinteger(L, pkThisPlot->GetContinentType());2007	}2008	else2009	{2010		lua_pushinteger(L, 0);2011	}2012	return 1;2013}

Calls

Called by