Bazaar developer reference

CustomMods::eventTestAll(const char *, CvLuaArgsHandle &)

Defined in
CustomMods.cpp, line 132
Class
CustomMods
Hook name
CivHooks::CustomMods_eventTestAll

Hooks

static bool BeforeCustomMods_eventTestAll(CustomMods* self, const char* szName, CvLuaArgsHandle & args, int& result);static void AfterCustomMods_eventTestAll(CustomMods* self, const char* szName, CvLuaArgsHandle & args, int& result);static int ReplaceCustomMods_eventTestAll(int (*original)(CustomMods*, const char*, CvLuaArgsHandle &), CustomMods* self, const char* szName, CvLuaArgsHandle & args);CivRegisterBefore<CivHooks::CustomMods_eventTestAll>(host, &BeforeCustomMods_eventTestAll);CivRegisterAfter<CivHooks::CustomMods_eventTestAll>(host, &AfterCustomMods_eventTestAll);CivRegisterReplace<CivHooks::CustomMods_eventTestAll>(host, &ReplaceCustomMods_eventTestAll);

Code

132int CustomMods::eventTestAll(const char* szName, CvLuaArgsHandle &args) {133	ICvEngineScriptSystem1* pkScriptSystem = gDLL->GetScriptSystem();134	if (pkScriptSystem) {135		bool bResult = false;136		if (LuaSupport::CallTestAll(pkScriptSystem, szName, args.get(), bResult)) {137			if (bResult) {138				return GAMEEVENTRETURN_TRUE;139			} else {140				return GAMEEVENTRETURN_FALSE;141			}142		}143	}144145	return GAMEEVENTRETURN_NONE;146}

Calls

Called by