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

Function tryVariant

plugins/tiletypes.cpp:554–565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552}
553
554bool tryVariant(std::string value, TileType &paint)
555{
556 FOR_ENUM_ITEMS(tiletype_variant, i)
557 {
558 if (value == ENUM_KEY_STR(tiletype_variant,i))
559 {
560 paint.variant = i;
561 return true;
562 }
563 }
564 return false;
565}
566
567bool processTileType(color_ostream & out, TileType &paint, std::vector<std::string> &params, int start, int end, bool isFilter)
568{

Callers 1

processTileTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected