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

Method giveResource

source/game/StarStatCollection.cpp:90–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90float StatCollection::giveResource(String const& resourceName, float amount) {
91 return m_stats.giveResourceValue(resourceName, amount);
92}
93
94bool StatCollection::consumeResource(String const& resourceName, float amount) {
95 return m_stats.consumeResourceValue(resourceName, amount);

Callers

nothing calls this directly

Calls 1

giveResourceValueMethod · 0.80

Tested by

no test coverage detected