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

Function parseWireBrush

source/game/StarDungeonGenerator.cpp:230–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228 }
229
230 BrushConstPtr parseWireBrush(Json const& brush) {
231 Json settings = brush.get(1);
232 String group = settings.getString("group");
233 bool local = settings.getBool("local", true);
234 return make_shared<const WireBrush>(group, local);
235 }
236
237 BrushConstPtr parseItemBrush(Json const& brush) {
238 ItemDescriptor item(brush.getString(1), 1);

Callers 1

parseMethod · 0.85

Calls 3

getStringMethod · 0.80
getBoolMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected