| 59 | } |
| 60 | |
| 61 | ProjectilePtr ProjectileDatabase::netLoadProjectile(ByteArray const& netStore, NetCompatibilityRules rules) const { |
| 62 | DataStreamBuffer ds(netStore); |
| 63 | ds.setStreamCompatibilityVersion(rules); |
| 64 | String typeName = ds.read<String>(); |
| 65 | return make_shared<Projectile>(m_configs.get(typeName), ds, rules); |
| 66 | } |
| 67 | |
| 68 | ProjectileConfigPtr ProjectileDatabase::readConfig(String const& path) { |
| 69 | auto assets = Root::singleton().assets(); |
no test coverage detected