Пример #1
0
 public override void Deserialize(IUnmanagedMemoryReader reader)
 {
     base.Deserialize(reader);
     Category = reader.ReadSByte();
     Part     = reader.ReadSByte();
     Hero     = reader.ReadSByte();
 }
 public override void Deserialize(IUnmanagedMemoryReader reader)
 {
     base.Deserialize(reader);
     EncryptionKey       = reader.ReadInt32();
     DecryptionKey       = reader.ReadInt32();
     EncryptionSerialKey = reader.ReadInt32();
     DecryptionSerialKey = reader.ReadInt32();
 }
Пример #3
0
 public override void Deserialize(IUnmanagedMemoryReader reader)
 {
     base.Deserialize(reader);
     CharacterId  = reader.ReadInt32();
     Name         = reader.ReadString(Encoding.Unicode);
     Strength     = reader.ReadByte();
     Stamina      = reader.ReadByte();
     Dexterity    = reader.ReadByte();
     Willpower    = reader.ReadByte();
     StatusPoints = reader.ReadByte();
     Level        = reader.ReadByte();
 }
 public override void Deserialize(IUnmanagedMemoryReader reader)
 {
     base.Deserialize(reader);
     Amount = reader.ReadByte();
     Items  = new PurchaseItem[Amount];
     for (int i = 0; i < Amount; i++)
     {
         var item = Items[i] = new PurchaseItem();
         item.Index  = reader.ReadInt32();
         item.Option = reader.ReadByte();
     }
 }
 public override void Deserialize(IUnmanagedMemoryReader reader)
 {
     base.Deserialize(reader);
     Username = reader.ReadString(Encoding.Unicode);
     Password = reader.ReadString(Encoding.ASCII);
     if (reader.Length >= 5)
     {
         ClientLongVersion = reader.ReadInt32();
     }
     if (reader.Length >= 1)
     {
         AuthenticationStage = reader.ReadByte();
     }
 }
Пример #6
0
        public override void Deserialize(IUnmanagedMemoryReader reader)
        {
            var data = Data;

            base.Deserialize(reader);
            Username            = reader.ReadString(Encoding.Unicode);
            data.AccountId      = reader.ReadInt32();
            data.Unknown2       = reader.ReadInt32();
            data.Unknown3       = reader.ReadInt32();
            data.Unknown4       = reader.ReadInt32();
            data.Key1           = reader.ReadInt32();
            data.Key2           = reader.ReadInt32();
            Data                = data;
            AuthenticationStage = reader.ReadByte();
        }
 public override void Deserialize(IUnmanagedMemoryReader reader)
 {
     base.Deserialize(reader);
     Type    = (MessengerType)reader.ReadByte();
     Unknown = reader.ReadInt32();
 }
 public override void Deserialize(IUnmanagedMemoryReader reader)
 {
     throw new NotImplementedException();
 }
 public override void Deserialize(IUnmanagedMemoryReader reader)
 {
     base.Deserialize(reader);
 }
 public override void Deserialize(IUnmanagedMemoryReader reader)
 {
     base.Deserialize(reader);
     TutorialId = reader.ReadUInt16();
 }
 public override void Deserialize(IUnmanagedMemoryReader reader)
 {
     base.Deserialize(reader);
     Name = reader.ReadString(Encoding.Unicode);
 }
 public override void Deserialize(IUnmanagedMemoryReader reader)
 {
     base.Deserialize(reader);
     Body = reader.ReadBytes(Header.BodyLength);
 }
Пример #13
0
 public override void Deserialize(IUnmanagedMemoryReader reader)
 {
     base.Deserialize(reader);
     Type = (SynchronizationType)reader.ReadByte();
 }
Пример #14
0
 public override void Deserialize(IUnmanagedMemoryReader reader)
 {
     base.Deserialize(reader);
     Type = reader.ReadByte();
 }
Пример #15
0
 public unsafe virtual void Deserialize(IUnmanagedMemoryReader reader)
 {
     Header           = *(NetworkMessageHeader *)reader.Pointer.ToPointer();
     reader.Position += 8;
 }