Esempio n. 1
0
 public void ChangeCharacter(Client client, int index)
 {
     lock (characterSlots)
     {
         Broadcast(PacketMaker.MakeChCharacter(client.GetId(), (byte)index));
         for (int i = 0; i < characterSlots.Length; i++)
         {
             if (characterSlots[i].Remove(client))
             {
                 break;
             }
         }
         characterSlots[index].Add(client);
     }
 }
Esempio n. 2
0
 public byte[] GetCharacterPacket()
 {
     return(PacketMaker.MakeChCharacter(id, character));
 }