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

Method effectSourceConfig

source/game/StarEffectSourceDatabase.cpp:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27EffectSourceConfigPtr EffectSourceDatabase::effectSourceConfig(String const& kind) const {
28 auto k = kind.toLower();
29 if (!m_sourceConfigs.contains(k))
30 throw StarException(strf("Unknown effect source definition with kind '{}'.", kind));
31 return m_sourceConfigs.get(k);
32}
33
34EffectSourceConfig::EffectSourceConfig(Json const& config) {
35 m_kind = config.getString("kind");

Callers 1

tickMethod · 0.80

Calls 5

StarExceptionClass · 0.85
strfFunction · 0.85
toLowerMethod · 0.80
containsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected