Bazaar developer reference

CvLuaPlot::lSetContinentArtType(lua_State *)

Defined in
Lua/CvLuaPlot.cpp, line 2016
Class
CvLuaPlot
Hook name
CivHooks::CvLuaPlot_lSetContinentArtType

Hooks

static bool BeforeCvLuaPlot_lSetContinentArtType(lua_State* L, int& result);static void AfterCvLuaPlot_lSetContinentArtType(lua_State* L, int& result);static int ReplaceCvLuaPlot_lSetContinentArtType(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlot_lSetContinentArtType>(host, &BeforeCvLuaPlot_lSetContinentArtType);CivRegisterAfter<CivHooks::CvLuaPlot_lSetContinentArtType>(host, &AfterCvLuaPlot_lSetContinentArtType);CivRegisterReplace<CivHooks::CvLuaPlot_lSetContinentArtType>(host, &ReplaceCvLuaPlot_lSetContinentArtType);

Code

2016int CvLuaPlot::lSetContinentArtType(lua_State* L)2017{2018	CvPlot* pkThisPlot = GetInstance(L);2019	if(pkThisPlot)2020	{2021		const int iContinentType = lua_tointeger(L, 2);2022		pkThisPlot->SetContinentType((char) iContinentType);2023	}2024	return 0;2025}

Calls

Called by