Esempio 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);
        }
Esempio n. 2
0
 public void DestroyProjectile(EntityRefProjectile entity_ref)
 {
     _destroy.Enqueue(entity_ref);
 }
Esempio n. 3
0
 public Boolean ProjectileExists(EntityRefProjectile entity_ref)
 {
     return(GetProjectile(entity_ref) != null);
 }