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

Method setStatusProperty

source/game/StarStatusController.cpp:134–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void StatusController::setStatusProperty(String const& name, Json value) {
135 if (value.isNull())
136 m_statusProperties.remove(name);
137 else
138 m_statusProperties.set(name, value);
139}
140
141StringList StatusController::statNames() const {
142 return m_statCollection.statNames();

Callers 2

initMethod · 0.45
NpcMethod · 0.45

Calls 3

isNullMethod · 0.45
removeMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected