MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / getMonsterBrush

Function getMonsterBrush

source/game/StarTilesetDatabase.cpp:125–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 3

getSeedFunction · 0.85
containsMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected