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

Method DEFINE_VMETHOD_INTERPOSE

plugins/manipulator.cpp:2282–2293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2280 typedef df::viewscreen_unitlistst interpose_base;
2281
2282 DEFINE_VMETHOD_INTERPOSE(void, feed, (set<df::interface_key> *input))
2283 {
2284 if (input->count(interface_key::UNITVIEW_PRF_PROF))
2285 {
2286 if (units[page].size())
2287 {
2288 Screen::show(std::make_unique<viewscreen_unitlaborsst>(units[page], cursor_pos[page]), plugin_self);
2289 return;
2290 }
2291 }
2292 INTERPOSE_NEXT(feed)(input);
2293 }
2294
2295 DEFINE_VMETHOD_INTERPOSE(void, render, ())
2296 {

Callers

nothing calls this directly

Calls 4

showFunction · 0.85
OutputStringFunction · 0.85
countMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected