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

Function trySpecial

plugins/tiletypes.cpp:541–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539}
540
541bool trySpecial(std::string value, TileType &paint)
542{
543 FOR_ENUM_ITEMS(tiletype_special, i)
544 {
545 if (value == ENUM_KEY_STR(tiletype_special,i))
546 {
547 paint.special = i;
548 return true;
549 }
550 }
551 return false;
552}
553
554bool tryVariant(std::string value, TileType &paint)
555{

Callers 1

processTileTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected