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

Function get_roller_str

plugins/blueprint.cpp:906–919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

904}
905
906static const char * get_roller_str(df::building *b) {
907 df::building_rollersst *r = virtual_cast<df::building_rollersst>(b);
908 if (!r)
909 return "~";
910
911 switch (r->direction) {
912 case screw_pump_direction::FromNorth: return add_speed_suffix(r, "Mr");
913 case screw_pump_direction::FromEast: return add_speed_suffix(r, "Mrs");
914 case screw_pump_direction::FromSouth: return add_speed_suffix(r, "Mrss");
915 case screw_pump_direction::FromWest: return add_speed_suffix(r, "Mrsss");
916 default:
917 return "~";
918 }
919}
920
921static const char * get_build_keys(const df::coord &pos,
922 const tile_context &ctx,

Callers 1

get_build_keysFunction · 0.85

Calls 1

add_speed_suffixFunction · 0.85

Tested by

no test coverage detected