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

Function CallInstanceEvent

scripts/barney.cpp:435–445  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

433// CallInstanceEvent()
434// ===================
435int16_t STDCALL CallInstanceEvent(int id, void *ptr, int event, tOSIRISEventInfo *data) {
436 switch (id) {
437 case ID_LEVEL_0000:
438 return ((BaseScript *)ptr)->CallEvent(event, data);
439 break;
440 default:
441 mprintf(0, "SCRIPT: Illegal ID (%d)\n", id);
442 break;
443 }
444 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
445}
446
447// ==================
448// SaveRestoreState()

Callers

nothing calls this directly

Calls 1

CallEventMethod · 0.45

Tested by

no test coverage detected