Bazaar developer reference

CvLuaCity::lCreateApolloProgram(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 2935
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lCreateApolloProgram

Hooks

static bool BeforeCvLuaCity_lCreateApolloProgram(lua_State* L, int& result);static void AfterCvLuaCity_lCreateApolloProgram(lua_State* L, int& result);static int ReplaceCvLuaCity_lCreateApolloProgram(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lCreateApolloProgram>(host, &BeforeCvLuaCity_lCreateApolloProgram);CivRegisterAfter<CivHooks::CvLuaCity_lCreateApolloProgram>(host, &AfterCvLuaCity_lCreateApolloProgram);CivRegisterReplace<CivHooks::CvLuaCity_lCreateApolloProgram>(host, &ReplaceCvLuaCity_lCreateApolloProgram);

Code

2934//void CreateApolloProgram();2935int CvLuaCity::lCreateApolloProgram(lua_State* L)2936{2937	CvCity* pkCity = GetInstance(L);2938	if(pkCity != NULL)2939	{2940		ProjectTypes eApolloProgram = (ProjectTypes)GC.getSPACE_RACE_TRIGGER_PROJECT();2941		pkCity->CreateProject(eApolloProgram);2942	}29432944	return 0;2945}

Calls

Called by