MCPcopy Create free account
hub / github.com/DFHack/dfhack / compileEventHandlerArray

Function compileEventHandlerArray

plugins/eventful.cpp:267–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267std::array<handler_t,EventManager::EventType::EVENT_MAX> compileEventHandlerArray() {
268 std::array<handler_t, EventManager::EventType::EVENT_MAX> managers{};
269 auto t = (EventManager::EventType::EventType) 0;
270 while (t < EventManager::EventType::EVENT_MAX) {
271 managers[t] = getManager(t);
272 t = (EventManager::EventType::EventType) int(t + 1);
273 }
274 return managers;
275}
276static std::array<handler_t,EventManager::EventType::EVENT_MAX> eventHandlers;
277
278static void enableEvent(int evType,int freq)

Callers 1

Calls 1

getManagerFunction · 0.70

Tested by

no test coverage detected