Пример #1
0
        public void ProcessEntityDespawns(int serverTick, List <int> despawns)
        {
            foreach (var id in despawns)
            {
                var entity = replicatedEntities.Unregister(id);

                if (entity == Entity.Null || !EntityManager.Exists(entity))
                {
                    continue;
                }

                EntityManager.AddComponentData(entity, new DespawnServer());
            }
        }
 public void UnRegisterEntity(int id)
 {
     replicatedEntityCollection.Unregister(id);
 }