| 146 | } |
| 147 | |
| 148 | float StatSet::resourceValue(String const& resourceName) const { |
| 149 | if (auto r = m_resources.ptr(resourceName)) |
| 150 | return r->value; |
| 151 | return 0.0f; |
| 152 | } |
| 153 | |
| 154 | float StatSet::setResourceValue(String const& resourceName, float value) { |
| 155 | return getResource(resourceName).setValue(value); |