Example #1
0
 public void Write(MachineID value)
 {
     byte[] array = value.ToByteArray();
     Buffer.BlockCopy(array, 0, this.Bytes.Array, this.offset, array.Length);
     this.offset += array.Length;
 }
Example #2
0
 public static int CalculateStructureSize(this MachineID value)
 {
     return(16);
 }
Example #3
0
        public IAsyncResult BeginLogin(string nexonID, string characterID, IPAddress localAddress, IPAddress remoteAddress, bool canTry, bool isTrial, MachineID machineID, ICollection <int> gameRoomClients, AsyncCallback callback, object state)
        {
            Login login = new Login(nexonID, characterID, localAddress, remoteAddress, canTry, isTrial, machineID, gameRoomClients);

            return(this.Transmit(login.Serialize(), nexonID, characterID, callback, state));
        }