| 39 | } |
| 40 | |
| 41 | ProjectilePtr 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 | |
| 47 | String ProjectileDatabase::damageKindImage(String const& type) const { |
| 48 | if (!m_configs.contains(type)) |
no test coverage detected