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

Function compileManagerArray

library/modules/EventManager.cpp:207–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207std::array<eventManager_t,EventType::EVENT_MAX> compileManagerArray() {
208 std::array<eventManager_t, EventType::EVENT_MAX> managers{};
209 auto t = (EventType::EventType) 0;
210 while (t < EventType::EVENT_MAX) {
211 managers[t] = getManager(t);
212 t = (EventType::EventType) int(t + 1);
213 }
214 return managers;
215}
216
217//job initiated
218static int32_t lastJobId = -1;

Callers 1

manageEventsMethod · 0.85

Calls 1

getManagerFunction · 0.70

Tested by

no test coverage detected