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

Function CallInstanceEvent

scripts/CanyonsCTF.cpp:457–467  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

CallEventMethod · 0.45

Tested by

no test coverage detected