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

Function CallInstanceEvent

scripts/RudeAwakening.cpp:597–615  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

595// CallInstanceEvent()
596// ===================
597int16_t STDCALL CallInstanceEvent(int id, void *ptr, int event, tOSIRISEventInfo *data) {
598 switch (id) {
599 case ID_LEVEL_0000:
600 case ID_CUSTOM_OBJECT_1017:
601 case ID_CUSTOM_OBJECT_101A:
602 case ID_CUSTOM_OBJECT_1019:
603 case ID_CUSTOM_OBJECT_1016:
604 case ID_CUSTOM_OBJECT_1015:
605 case ID_CUSTOM_OBJECT_1018:
606 case ID_CUSTOM_OBJECT_1813:
607 case ID_CUSTOM_OBJECT_1014:
608 return ((BaseScript *)ptr)->CallEvent(event, data);
609 break;
610 default:
611 mprintf(0, "SCRIPT: Illegal ID (%d)\n", id);
612 break;
613 }
614 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
615}
616
617// ==================
618// SaveRestoreState()

Callers

nothing calls this directly

Calls 1

CallEventMethod · 0.45

Tested by

no test coverage detected