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

Method DEFINE_VMETHOD_INTERPOSE

plugins/building-hacks.cpp:131–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129 }
130 }
131 DEFINE_VMETHOD_INTERPOSE(uint32_t,getImpassableOccupancy,())
132 {
133 if(auto def = find_def())
134 {
135 if(def->impassible_fix)
136 return tile_building_occ::Impassable;
137 }
138 return INTERPOSE_NEXT(getImpassableOccupancy)();
139 }
140
141 DEFINE_VMETHOD_INTERPOSE(void, getPowerInfo, (df::power_info *info))
142 {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected