protected override void Write(DWriter wtr)
 {
     wtr.Write(Tier);
     wtr.WriteUTF(Goal);
     wtr.WriteUTF(Description);
     wtr.WriteUTF(Image);
 }
 protected override void Write(DWriter wtr)
 {
     wtr.WriteUTF(AccountId);
     wtr.Write(CharId);
     wtr.WriteUTF(Killer);
     wtr.Write(obf0);
     wtr.Write(obf1);
 }
Exemplo n.º 3
0
 protected override void Write(DWriter wtr)
 {
     wtr.WriteUTF(Name);
     wtr.Write(ObjectId);
     wtr.Write(Stars);
     wtr.Write(BubbleTime);
     wtr.WriteUTF(Recipient);
     wtr.WriteUTF(Text);
     wtr.WriteUTF(CleanText);
 }
 protected override void Write(DWriter wtr)
 {
     wtr.WriteUTF(Name);
     wtr.WriteUTF(Host);
     wtr.Write(Port);
     wtr.Write(GameId);
     wtr.Write(KeyTime);
     wtr.Write(IsFromArena);
     wtr.Write((short)Key.Length);
     wtr.Write(Key);
 }
Exemplo n.º 5
0
 protected override void Write(DWriter wtr)
 {
     wtr.Write(AccountListId);
     wtr.Write((short)AccountIds.Length);
     foreach (var i in AccountIds)
     {
         wtr.WriteUTF(i);
     }
 }
 protected override void Write(DWriter wtr)
 {
     wtr.Write(AccountListId);
     wtr.Write((ushort)AccountIds.Length);
     foreach (string i in AccountIds)
     {
         wtr.WriteUTF(i);
     }
     wtr.Write(LockAction);
 }
Exemplo n.º 7
0
 protected override void Write(DWriter wtr)
 {
     wtr.WriteUTF(BuildVersion);
     wtr.Write(GameId);
     wtr.WriteUTF(RSA.Instance.Encrypt(GUID));
     wtr.WriteUTF(RSA.Instance.Encrypt(Password));
     wtr.Write(randomint1);
     wtr.WriteUTF(Secret);
     wtr.Write(KeyTime);
     wtr.Write((short)Key.Length);
     wtr.Write(Key);
     wtr.Write(obf0.Length);
     wtr.Write(obf0);
     wtr.WriteUTF(obf1);
     wtr.WriteUTF(obf2);
     wtr.WriteUTF(obf3);
     wtr.WriteUTF(obf4);
     wtr.WriteUTF(obf5);
 }
Exemplo n.º 8
0
 protected override void Write(DWriter wtr)
 {
     wtr.WriteUTF(BuildVersion);
     wtr.Write(GameId);
     wtr.WriteUTF(GUID);
     wtr.Write(RandomInt1); //random int
     wtr.WriteUTF(Password);
     wtr.Write(RandomInt2); //random int
     wtr.WriteUTF(Secret);
     wtr.Write(KeyTime);
     wtr.Write((short)Key.Length);
     wtr.Write(Key);
     wtr.Write(MapInfo.Length);
     wtr.Write(MapInfo);
     wtr.WriteUTF(obf1);
     wtr.WriteUTF(obf2);
     wtr.WriteUTF(obf3);
     wtr.WriteUTF(obf4);
     wtr.WriteUTF(obf5);
 }
Exemplo n.º 9
0
        protected override void Write(DWriter wtr)
        {
            wtr.Write(Width);
            wtr.Write(Height);
            wtr.WriteUTF(Name);
            wtr.WriteUTF(obf0);
            wtr.Write(obf1);
            wtr.Write(Fp);
            wtr.Write(Background);
            wtr.Write(AllowTeleport);
            wtr.Write(ShowDisplays);

            wtr.Write((short)ClientXML.Length);
            foreach (var i in ClientXML)
            {
                wtr.WriteUTF(i);
            }

            wtr.Write((short)ExtraXML.Length);
            foreach (var i in ExtraXML)
            {
                wtr.WriteUTF(i);
            }
        }
        protected override void Write(DWriter wtr)
        {
            wtr.Write(Width);
            wtr.Write(Height);
            wtr.WriteUTF(Name);
            wtr.WriteUTF(LanguageString);
            wtr.Write(Seed);
            wtr.Write(Background);
            wtr.Write(Difficulty);
            wtr.Write(AllowTeleport);
            wtr.Write(ShowDisplays);

            wtr.Write((ushort)ClientXML.Length);
            foreach (string i in ClientXML)
            {
                wtr.Write32UTF(i);
            }

            wtr.Write((ushort)ExtraXML.Length);
            foreach (string i in ExtraXML)
            {
                wtr.Write32UTF(i);
            }
        }
        protected override void Write(DWriter wtr)
        {
            wtr.Write((ushort)MyItems.Length);
            foreach (TradeItem i in MyItems)
            {
                i.Write(wtr);
            }

            wtr.WriteUTF(YourName);
            wtr.Write((ushort)YourItems.Length);
            foreach (TradeItem i in YourItems)
            {
                i.Write(wtr);
            }
        }
Exemplo n.º 12
0
 public void Write(DWriter wtr)
 {
     try
     {
         wtr.Write(Id);
         Position.Write(wtr);
         wtr.Write((ushort)Stats.Length);
         foreach (KeyValuePair <StatsType, object> i in Stats)
         {
             wtr.Write((byte)i.Key);
             if (i.Key.IsUTF() && i.Value != null)
             {
                 wtr.WriteUTF(i.Value.ToString());
             }
             else
             {
                 wtr.Write((int)i.Value);
             }
         }
     }
     catch (Exception) { }
 }
Exemplo n.º 13
0
 protected override void Write(DWriter wtr)
 {
     wtr.WriteUTF(Name);
     wtr.Write(GuildRank);
 }
Exemplo n.º 14
0
 protected override void Write(DWriter wtr)
 {
     wtr.Write(ErrorId);
     wtr.WriteUTF(ErrorDescription);
 }
Exemplo n.º 15
0
 protected override void Write(DWriter wtr)
 {
     wtr.WriteUTF(Name);
     wtr.Write(Bytes.Length);
     wtr.Write(Bytes);
 }
Exemplo n.º 16
0
 protected override void Write(DWriter wtr)
 {
     wtr.Write(Success);
     wtr.WriteUTF(Message);
 }
Exemplo n.º 17
0
 protected override void Write(DWriter wtr)
 {
     wtr.Write(Result);
     wtr.WriteUTF(Message);
 }
Exemplo n.º 18
0
 protected override void Write(DWriter wtr)
 {
     wtr.Write(ObjectId);
     wtr.WriteUTF(Text);
     Color.Write(wtr);
 }
Exemplo n.º 19
0
 protected override void Write(DWriter wtr)
 {
     wtr.Write(Result);
     wtr.WriteUTF(ResultString);
 }
Exemplo n.º 20
0
 protected override void Write(DWriter wtr)
 {
     wtr.WriteUTF(Name);
 }
Exemplo n.º 21
0
 protected override void Write(DWriter wtr)
 {
     wtr.Write(Type);
     wtr.WriteUTF(Text);
 }
Exemplo n.º 22
0
 protected override void Write(DWriter wtr)
 {
     wtr.WriteUTF(PetName);
     wtr.Write(PetSkinId);
 }
Exemplo n.º 23
0
 protected override void Write(DWriter wtr)
 {
     wtr.Write(Success);
     wtr.WriteUTF(ErrorText);
 }