| 526 | } |
| 527 | |
| 528 | bool 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 | |
| 541 | bool trySpecial(std::string value, TileType &paint) |
| 542 | { |