Esempio n. 1
0
        public static void ReadEntityDespawn(Client client, PacketReader reader)
        {
            EntityDespawnPacket edp = new EntityDespawnPacket();
            edp.Read(reader);

            if (!reader.Failed)
            {
                client.HandleEntityDespawn(edp);
            }
        }
Esempio n. 2
0
 internal void UninfomClient(Client client)
 {
     if (client != this)
     {
         EntityDespawnPacket dp = new EntityDespawnPacket {
             EntityId = client.ClientId
         };
         dp.Write();
         client.SendSync(dp);
     }
     byte dummy;
     _awareCloseClients.TryRemove(client, out dummy);
 }
Esempio n. 3
0
 public void HandleEntityDespawn(EntityDespawnPacket edp)
 {
     GameScene.Entities.Remove(edp.EntityId);
 }