Bazaar developer reference

CustomMods::eventAccumulator(int &, const char *, CvLuaArgsHandle &)

Defined in
CustomMods.cpp, line 164
Class
CustomMods
Hook name
CivHooks::CustomMods_eventAccumulator

Hooks

static bool BeforeCustomMods_eventAccumulator(CustomMods* self, int & iValue, const char* szName, CvLuaArgsHandle & args, int& result);static void AfterCustomMods_eventAccumulator(CustomMods* self, int & iValue, const char* szName, CvLuaArgsHandle & args, int& result);static int ReplaceCustomMods_eventAccumulator(int (*original)(CustomMods*, int &, const char*, CvLuaArgsHandle &), CustomMods* self, int & iValue, const char* szName, CvLuaArgsHandle & args);CivRegisterBefore<CivHooks::CustomMods_eventAccumulator>(host, &BeforeCustomMods_eventAccumulator);CivRegisterAfter<CivHooks::CustomMods_eventAccumulator>(host, &AfterCustomMods_eventAccumulator);CivRegisterReplace<CivHooks::CustomMods_eventAccumulator>(host, &ReplaceCustomMods_eventAccumulator);

Code

164int CustomMods::eventAccumulator(int &iValue, const char* szName, CvLuaArgsHandle &args) {165	ICvEngineScriptSystem1* pkScriptSystem = gDLL->GetScriptSystem();166	if (pkScriptSystem) {167		if (LuaSupport::CallAccumulator(pkScriptSystem, szName, args.get(), iValue)) {168			return GAMEEVENTRETURN_TRUE;169		}170	}171172	return GAMEEVENTRETURN_NONE;173}

Calls

Called by