| 123 | } |
| 124 | |
| 125 | BrushConstPtr getMonsterBrush(String const& typeName, Tiled::Properties& properties) { |
| 126 | JsonObject brush; |
| 127 | brush["kind"] = "monster"; |
| 128 | brush["typeName"] = typeName; |
| 129 | if (properties.contains("seed")) { |
| 130 | brush["seed"] = getSeed(properties); |
| 131 | } |
| 132 | brush["parameters"] = properties.opt<Json>("parameters").value(JsonObject{}); |
| 133 | return make_shared<const NpcBrush>(brush); |
| 134 | } |
| 135 | |
| 136 | BrushConstPtr getStagehandBrush(String const& typeName, Tiled::Properties& properties) { |
| 137 | JsonObject brush; |