Beispiel #1
0
        public Projectile GetProjectile(int objectId, int bulletId)
        {
            var entity = GetEntity(objectId);

            return(entity != null
                ? ((IProjectileOwner)entity).Projectiles[bulletId]
                : Projectiles.SingleOrDefault(p =>
                                              p.Value.ProjectileOwner.Self.Id == objectId &&
                                              p.Value.ProjectileId == bulletId).Value);
        }