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

Function CallInstanceEvent

scripts/Paranoia.cpp:413–423  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

411// CallInstanceEvent()
412// ===================
413int16_t STDCALL CallInstanceEvent(int id, void *ptr, int event, tOSIRISEventInfo *data) {
414 switch (id) {
415 case ID_LEVEL_0000:
416 return ((BaseScript *)ptr)->CallEvent(event, data);
417 break;
418 default:
419 mprintf(0, "SCRIPT: Illegal ID (%d)\n", id);
420 break;
421 }
422 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
423}
424
425// ==================
426// SaveRestoreState()

Callers

nothing calls this directly

Calls 1

CallEventMethod · 0.45

Tested by

no test coverage detected