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

Function tryShape

plugins/tiletypes.cpp:515–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513}
514
515bool tryShape(std::string value, TileType &paint)
516{
517 FOR_ENUM_ITEMS(tiletype_shape,i)
518 {
519 if (value == ENUM_KEY_STR(tiletype_shape,i))
520 {
521 paint.shape = i;
522 return true;
523 }
524 }
525 return false;
526}
527
528bool tryMaterial(std::string value, TileType &paint)
529{

Callers 1

processTileTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected