Exemplo n.º 1
0
        public Projectile *GetProjectile(EntityRefProjectile entity_ref)
        {
            var ptr = _entities->Projectile(entity_ref._index);

            if (ptr->_entity._active && ptr->_entity._ref._version == entity_ref._version)
            {
                return(ptr);
            }
            return(null);
        }
Exemplo n.º 2
0
 public void DestroyProjectile(EntityRefProjectile entity_ref)
 {
     _destroy.Enqueue(entity_ref);
 }
Exemplo n.º 3
0
 public Boolean ProjectileExists(EntityRefProjectile entity_ref)
 {
     return(GetProjectile(entity_ref) != null);
 }