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

Function CallInstanceEvent

scripts/CellTestLevel.cpp:459–469  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

457// CallInstanceEvent()
458// ===================
459int16_t STDCALL CallInstanceEvent(int id, void *ptr, int event, tOSIRISEventInfo *data) {
460 switch (id) {
461 case ID_LEVEL_0000:
462 return ((BaseScript *)ptr)->CallEvent(event, data);
463 break;
464 default:
465 mprintf(0, "SCRIPT: Illegal ID (%d)\n", id);
466 break;
467 }
468 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
469}
470
471// ==================
472// SaveRestoreState()

Callers

nothing calls this directly

Calls 1

CallEventMethod · 0.45

Tested by

no test coverage detected