Exemplo n.º 1
0
 private void Read(ref SharpSerializer ser)
 {
     this.roomName            = ser.ReadString();
     this.currentConnnections = ser.ReadInt16();
     this.maxConnection       = ser.ReadInt16();
     this.isSecured           = ser.ReadBool();
 }
Exemplo n.º 2
0
 private void Read(ref SharpSerializer ser)
 {
     this.room_name      = ser.ReadString();
     this.room_password  = ser.ReadString();
     this.max_connection = ser.ReadInt16();
     this.slots          = new SharpClient[this.max_connection];
     for (int i = 0; i < slots.Length; i++)
     {
         bool isExist = ser.ReadBool();
         if (isExist)
         {
             slots[i] = new SharpClient(ref ser);
             slots[i].SetIsConnected(true);
             if (i != 0)
             {
                 connections.Add(slots[i]);
             }
         }
         else if (this.clientCount == 0)
         {
             this.clientCount = (short)i;
         }
     }
 }
Exemplo n.º 3
0
 private void Read(ref SharpSerializer ser)
 {
     this.Name  = ser.ReadString();
     this.netID = ser.ReadInt16();
 }