Exemplo 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);
     }
 }
Exemplo n.º 2
0
 public byte[] GetCharacterPacket()
 {
     return(PacketMaker.MakeChCharacter(id, character));
 }