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

Method applyParameters

source/game/StarItemDescriptor.cpp:73–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73ItemDescriptor ItemDescriptor::applyParameters(JsonObject const& parameters) const {
74 return ItemDescriptor(name(), this->count(), this->parameters().setAll(parameters));
75}
76
77bool ItemDescriptor::isNull() const {
78 return m_name.empty();

Callers 8

updateMethod · 0.45
ItemDropMethod · 0.45
updateCollisionPolyMethod · 0.45
updateTakenMethod · 0.45
generateNpcVariantMethod · 0.45
initMethod · 0.45
updateMethod · 0.45
destroyMethod · 0.45

Calls 5

countMethod · 0.95
ItemDescriptorClass · 0.85
nameFunction · 0.85
setAllMethod · 0.80
parametersMethod · 0.45

Tested by

no test coverage detected