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

Function HandleEvent

Descent3/gameevent.cpp:236–245  ·  view source on GitHub ↗

Does a specific action according to an event

Source from the content-addressed store, hash-verified

234
235// Does a specific action according to an event
236void HandleEvent(game_event *ge) {
237 switch (ge->type) {
238 case RENDER_EVENT:
239 ge->subfunction(ge - GameEvent, ge->data);
240 break;
241 default:
242 ge->subfunction(ge - GameEvent, ge->data);
243 break;
244 }
245}

Callers 2

ProcessNormalEventsFunction · 0.85
ProcessRenderEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected