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

Method createProjectile

source/game/StarProjectileDatabase.cpp:41–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41ProjectilePtr ProjectileDatabase::createProjectile(String const& type, Json const& parameters) const {
42 if (!m_configs.contains(type))
43 throw ProjectileDatabaseException(strf("Unknown projectile with typeName {}.", type));
44 return make_shared<Projectile>(m_configs.get(type), parameters);
45}
46
47String ProjectileDatabase::damageKindImage(String const& type) const {
48 if (!m_configs.contains(type))

Callers 5

processActionMethod · 0.80
reloadPlayerMethod · 0.80
fireTriggeredMethod · 0.80
spawnProjectileMethod · 0.80

Calls 3

strfFunction · 0.85
containsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected