MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / CallInstanceEvent

Function CallInstanceEvent

scripts/clutter.cpp:261–263  ·  view source on GitHub ↗

CallInstanceEvent Purpose: Given an ID, a pointer to a script instance, an event and a pointer to the struct of information about the event, this function will translate who this event belongs to and passes the event to that instance of the script to be handled. Return a combination of CONTINUE_CHAIN and CONTINUE_DEFAULT, to give instructions on what to do based on the event. CONTINUE_CHAIN means

Source from the content-addressed store, hash-verified

259// after this script, than the CONTINUE_DEFAULT setting will be overridden by lower priority
260// scripts return value.
261int16_t STDCALL CallInstanceEvent(int id, void *ptr, int event, tOSIRISEventInfo *data) {
262 return ((ClutterScript *)ptr)->CallEvent(event, data);
263}
264
265// SaveRestoreState
266// Purpose:

Callers

nothing calls this directly

Calls 1

CallEventMethod · 0.45

Tested by

no test coverage detected