| 513 | } |
| 514 | |
| 515 | bool 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 | |
| 528 | bool tryMaterial(std::string value, TileType &paint) |
| 529 | { |