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

Method setResource

source/game/StarStatCollection.cpp:82–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void StatCollection::setResource(String const& resourceName, float value) {
83 m_stats.setResourceValue(resourceName, value);
84}
85
86void StatCollection::modifyResource(String const& resourceName, float amount) {
87 m_stats.modifyResourceValue(resourceName, amount);

Callers 1

killMethod · 0.45

Calls 1

setResourceValueMethod · 0.80

Tested by

no test coverage detected