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

Function buildings_onStateChange

library/modules/Buildings.cpp:137–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135bool buildings_do_onupdate = false;
136
137void buildings_onStateChange(color_ostream &out, state_change_event event)
138{
139 switch (event) {
140 case SC_MAP_LOADED:
141 buildings_do_onupdate = true;
142 break;
143 case SC_MAP_UNLOADED:
144 buildings_do_onupdate = false;
145 break;
146 default:
147 break;
148 }
149}
150
151void buildings_onUpdate(color_ostream &out)
152{

Callers 1

onStateChangeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected