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

Function CallInstanceEvent

scripts/myPowerHouse.cpp:473–484  ·  view source on GitHub ↗

=================== CallInstanceEvent() ===================

Source from the content-addressed store, hash-verified

471// CallInstanceEvent()
472// ===================
473int16_t STDCALL CallInstanceEvent(int id, void *ptr, int event, tOSIRISEventInfo *data) {
474 switch (id) {
475 case ID_LEVEL_0000:
476 case ID_CUSTOM_OBJECT_0827:
477 return ((BaseScript *)ptr)->CallEvent(event, data);
478 break;
479 default:
480 mprintf(0, "SCRIPT: Illegal ID (%d)\n", id);
481 break;
482 }
483 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
484}
485
486// ==================
487// SaveRestoreState()

Callers

nothing calls this directly

Calls 1

CallEventMethod · 0.45

Tested by

no test coverage detected