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

Method sc_event_name

library/Core.cpp:617–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615}
616
617std::string DFHack::sc_event_name (state_change_event id) {
618 sc_event_map_init();
619 for (auto it = state_change_event_map.begin(); it != state_change_event_map.end(); ++it)
620 {
621 if (it->second == id)
622 return it->first;
623 }
624 return "SC_UNKNOWN";
625}
626
627void DFHack::help_helper(color_ostream &con, const std::string &entry_name) {
628 ConditionalCoreSuspender suspend{};

Callers

nothing calls this directly

Calls 3

sc_event_map_initFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected