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