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

Function tryMaterial

plugins/tiletypes.cpp:528–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526}
527
528bool tryMaterial(std::string value, TileType &paint)
529{
530 FOR_ENUM_ITEMS(tiletype_material, i)
531 {
532 if (value == ENUM_KEY_STR(tiletype_material,i))
533 {
534 paint.material = i;
535 return true;
536 }
537 }
538 return false;
539}
540
541bool trySpecial(std::string value, TileType &paint)
542{

Callers 1

processTileTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected