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

Method on_count_changed

library/PluginManager.cpp:176–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174 }
175
176 void on_count_changed(int new_cnt, int delta) {
177 RefAutoinc lock(handler.owner->access);
178 count = new_cnt;
179 if (event)
180 event->on_count_changed(new_cnt, delta);
181 }
182 void on_invoked(lua_State *state, int nargs, bool from_c) {
183 RefAutoinc lock(handler.owner->access);
184 if (event)

Callers 2

dfhack_event_newindexFunction · 0.80
index_luaMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected