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

Function parseItemBrush

source/game/StarDungeonGenerator.cpp:237–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235 }
236
237 BrushConstPtr parseItemBrush(Json const& brush) {
238 ItemDescriptor item(brush.getString(1), 1);
239 return make_shared<const ItemBrush>(item);
240 }
241
242 BrushConstPtr Brush::parse(Json const& brush) {
243 String key = brush.getString(0);

Callers 1

parseMethod · 0.85

Calls 1

getStringMethod · 0.80

Tested by

no test coverage detected