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

Method DEFINE_VMETHOD_INTERPOSE

plugins/steam-engine.cpp:538–544  ·  view source on GitHub ↗

Furnaces need architecture, and this is a workshop only because furnaces cannot connect to machines.

Source from the content-addressed store, hash-verified

536 // Furnaces need architecture, and this is a workshop
537 // only because furnaces cannot connect to machines.
538 DEFINE_VMETHOD_INTERPOSE(bool, needsDesign, ())
539 {
540 if (get_steam_engine())
541 return true;
542
543 return INTERPOSE_NEXT(needsDesign)();
544 }
545
546 // Machine interface
547 DEFINE_VMETHOD_INTERPOSE(void, getPowerInfo, (df::power_info *info))

Callers

nothing calls this directly

Calls 6

insert_into_vectorFunction · 0.85
erase_from_vectorFunction · 0.85
make_explosionFunction · 0.85
findFunction · 0.50
sizeMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected