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

Function get_screw_pump_str

plugins/blueprint.cpp:861–875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

859}
860
861static const char * get_screw_pump_str(df::building *b) {
862 df::building_screw_pumpst *sp = virtual_cast<df::building_screw_pumpst>(b);
863 if (!sp)
864 return "~";
865
866 switch (sp->direction)
867 {
868 case screw_pump_direction::FromNorth: return "Msu";
869 case screw_pump_direction::FromEast: return "Msk";
870 case screw_pump_direction::FromSouth: return "Msm";
871 case screw_pump_direction::FromWest: return "Msh";
872 default:
873 return "~";
874 }
875}
876
877static const char * get_water_wheel_str(df::building *b) {
878 df::building_water_wheelst *ww =

Callers 1

get_build_keysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected