Ejemplo n.º 1
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteByte(this.Channel);
     writer.WriteUTF(this.Content);
     writer.WriteInt(this.Timestamp);
     writer.WriteUTF(this.Fingerprint);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteUTF(this.Name);
     writer.WriteShort(this.WorldX);
     writer.WriteShort(this.WorldY);
     writer.WriteUTF(this.Ownername);
 }
Ejemplo n.º 3
0
 protected override void serializeContent(ICustomDataWriter writer)
 {
     writer.WriteByte((byte)Channel);
     writer.WriteUTF(Content);
     writer.WriteInt(TimestampUtils.GetFromNow());
     writer.WriteUTF(Content);
 }
Ejemplo n.º 4
0
        public override void Serialize(ICustomDataWriter writer)
        {
            base.Serialize(writer);
            byte box = 0;

            box = BooleanByteWrapper.SetFlag(box, 0, Sex);
            box = BooleanByteWrapper.SetFlag(box, 1, IsRideable);
            box = BooleanByteWrapper.SetFlag(box, 2, IsFeconded);
            box = BooleanByteWrapper.SetFlag(box, 3, IsFecondationReady);
            writer.WriteByte(box);
            writer.WriteVarLong(this.Id_);
            writer.WriteVarLong(this.ExpirationDate);
            writer.WriteVarInt(this.Model);
            writer.WriteUTF(this.Name);
            writer.WriteUTF(this.Owner);
            writer.WriteByte(this.Level);
            writer.WriteVarInt(this.ReproductionCount);
            writer.WriteVarInt(this.ReproductionCountMax);
            writer.WriteShort(this.Effects.Length);
            foreach (ObjectEffectInteger item in this.Effects)
            {
                item.Serialize(writer);
            }
            writer.WriteShort(this.Capacities.Length);
            foreach (int item in this.Capacities)
            {
                writer.WriteVarInt(item);
            }
        }
Ejemplo n.º 5
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteUTF(this.Content);
     writer.WriteInt(this.Timestamp);
     writer.WriteVarLong(this.MemberId);
     writer.WriteUTF(this.MemberName);
 }
Ejemplo n.º 6
0
        protected override void serializeContent(ICustomDataWriter writer)
        {
            base.serializeContent(writer);

            writer.WriteDouble(SenderId);
            writer.WriteUTF(SenderName);
            writer.WriteUTF(Prefix);
            writer.WriteInt(SenderAccountId);
        }
Ejemplo n.º 7
0
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteByte(this.PartyType);
     writer.WriteUTF(this.PartyName);
     writer.WriteByte(this.MaxParticipants);
     writer.WriteVarLong(this.FromId);
     writer.WriteUTF(this.FromName);
     writer.WriteVarLong(this.ToId);
 }
 protected override void serializeContent(ICustomDataWriter writer)
 {
     writer.WriteByte(0);                          // HasRights + AlreadyConnected
     writer.WriteUTF("bypass");                    // Login name
     writer.WriteUTF("ByPass");                    // Nickname
     writer.WriteInt(1);                           // Account ID
     writer.WriteByte(0);                          // Community ID
     writer.WriteUTF("Elle est ou la poulette ?"); // Secret Question
     writer.WriteDouble(0);                        // Account creation
     writer.WriteDouble(0);                        // Subscribtion elapsed
     writer.WriteDouble(0);                        // Subscription end date
     writer.WriteByte(0);                          // Havenbag available
 }
Ejemplo n.º 9
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteInt(this.Uid);
     writer.WriteUTF(this.Title);
     writer.WriteUTF(this.Text);
     writer.WriteUTF(this.DescUrl);
     writer.WriteUTF(this.PictureUrl);
     writer.WriteShort(this.Items.Length);
     foreach (ObjectItemInformationWithQuantity item in this.Items)
     {
         item.Serialize(writer);
     }
 }
Ejemplo n.º 10
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteByte(this.MovementType);
     this.BasicInfos.Serialize(writer);
     writer.WriteVarLong(this.PlayerId);
     writer.WriteUTF(this.PlayerName);
 }
Ejemplo n.º 11
0
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteVarInt(this.GuildId);
     writer.WriteUTF(this.GuildName);
     writer.WriteByte(this.GuildLevel);
 }
Ejemplo n.º 12
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarShort(this.MsgId);
     writer.WriteInt(this.TimeStamp);
     writer.WriteUTF(this.Owner);
     writer.WriteVarShort(this.ObjectGenericId);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteUTF(this.Name);
     writer.WriteByte(this.Breed);
     writer.WriteBoolean(this.Sex);
     writer.WriteVarShort(this.CosmeticId);
 }
Ejemplo n.º 14
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarInt(this.RequestId);
     writer.WriteUTF(this.PlayerName);
     writer.WriteVarLong(this.PlayerId);
     this.Look.Serialize(writer);
 }
Ejemplo n.º 15
0
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteDouble(this.SenderId);
     writer.WriteUTF(this.SenderName);
     writer.WriteInt(this.SenderAccountId);
 }
Ejemplo n.º 16
0
        protected override void serializeContent(ICustomDataWriter writer)
        {
            // SelectedServerData (42)
            writer.WriteVarShort(211);    // Server id
            writer.WriteUTF("127.0.0.1"); // Server address
            writer.WriteShort(1);         // Number of ports
            writer.WriteInt(5556);        // Game Server port
            writer.WriteBool(false);      // Can create new character
            var ticket = Guid.NewGuid().ToString().Replace("-", "");

            writer.WriteVarInt(ticket.Length); // Ticket length
            writer.WriteUTFBytes(ticket);      // Ticket

            //SelectedServerDataExtended
            writer.WriteUShort(1); // Number of servers

            // GameServerInformations
            var byteBox = new ByteBox();

            byteBox[0] = false;        // Is Mono account
            byteBox[1] = true;         // Is Selectable
            writer.WriteByte(byteBox.Value);
            writer.WriteVarShort(211); // Server id
            writer.WriteByte(0);       // Type
            writer.WriteByte(3);       // Status
            writer.WriteByte(0);       // Completion
            writer.WriteByte(1);       // Character count
            writer.WriteByte(5);       // Character slots
            writer.WriteDouble(0);     // Date
        }
        public override void Serialize(ICustomDataWriter writer)
        {
            byte box = 0;

            box = BooleanByteWrapper.SetFlag(box, 0, HasRights);
            box = BooleanByteWrapper.SetFlag(box, 1, WasAlreadyConnected);
            writer.WriteByte(box);
            writer.WriteUTF(this.Login);
            writer.WriteUTF(this.Nickname);
            writer.WriteInt(this.AccountId);
            writer.WriteByte(this.CommunityId);
            writer.WriteUTF(this.SecretQuestion);
            writer.WriteDouble(this.AccountCreation);
            writer.WriteDouble(this.SubscriptionElapsedDuration);
            writer.WriteDouble(this.SubscriptionEndDate);
            writer.WriteByte(this.HavenbagAvailableRoom);
        }
Ejemplo n.º 18
0
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteUTF(this.LeaderName);
     writer.WriteVarShort(this.NbConnectedMembers);
     writer.WriteByte(this.NbTaxCollectors);
     writer.WriteInt(this.LastActivity);
 }
Ejemplo n.º 19
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarInt(this.HouseId);
     writer.WriteInt(this.InstanceId);
     writer.WriteBoolean(this.SecondHand);
     writer.WriteVarLong(this.RealPrice);
     writer.WriteUTF(this.BuyerName);
 }
Ejemplo n.º 20
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarLong(this.PlayerId);
     writer.WriteUTF(this.PlayerName);
     writer.WriteByte(this.Breed);
     writer.WriteBoolean(this.Sex);
     writer.WriteVarShort(this.Level);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteUTF(this.CollectorName);
     writer.WriteShort(this.WorldX);
     writer.WriteShort(this.WorldY);
     writer.WriteDouble(this.MapId);
     writer.WriteVarShort(this.SubAreaId);
     writer.WriteUTF(this.UserName);
     writer.WriteVarLong(this.CallerId);
     writer.WriteUTF(this.CallerName);
     writer.WriteDouble(this.Experience);
     writer.WriteVarShort(this.Pods);
     writer.WriteShort(this.ObjectsInfos.Length);
     foreach (ObjectItemGenericQuantity item in this.ObjectsInfos)
     {
         item.Serialize(writer);
     }
 }
Ejemplo n.º 22
0
        public override void Serialize(ICustomDataWriter writer)
        {
            byte box = 0;

            box = BooleanByteWrapper.SetFlag(box, 0, Success);
            box = BooleanByteWrapper.SetFlag(box, 1, Session);
            writer.WriteByte(box);
            writer.WriteUTF(this.Name);
        }
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteUTF(this.Name);
     this.Status.Serialize(writer);
     writer.WriteVarShort(this.LeagueId);
     writer.WriteInt(this.LadderPosition);
     writer.WriteBoolean(this.HiddenInPrefight);
 }
Ejemplo n.º 24
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteShort(this.Aliases.Length);
     foreach (String item in this.Aliases)
     {
         writer.WriteUTF(item);
     }
     writer.WriteShort(this.Args.Length);
     foreach (String item in this.Args)
     {
         writer.WriteUTF(item);
     }
     writer.WriteShort(this.Descriptions.Length);
     foreach (String item in this.Descriptions)
     {
         writer.WriteUTF(item);
     }
 }
Ejemplo n.º 25
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteUTF(this.Salt);
     writer.WriteVarInt(this.Key.Length);
     foreach (byte item in this.Key)
     {
         writer.WriteByte(item);
     }
 }
Ejemplo n.º 26
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteDouble(this.EntityId);
     writer.WriteVarShort(this.TextId);
     writer.WriteShort(this.Parameters.Length);
     foreach (String item in this.Parameters)
     {
         writer.WriteUTF(item);
     }
 }
Ejemplo n.º 27
0
 protected override void serializeContent(ICustomDataWriter writer)
 {
     writer.WriteByte((byte)Type);
     writer.WriteVarShort(TextId);
     writer.WriteShort((short)Args.Length);
     for (int i = 0; i < Args.Length; i++)
     {
         writer.WriteUTF(Args[i]);
     }
 }
Ejemplo n.º 28
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarShort(this.Id_);
     writer.WriteShort(this.Parameters.Length);
     foreach (String item in this.Parameters)
     {
         writer.WriteUTF(item);
     }
     writer.WriteBoolean(this.ForceOpen);
 }
Ejemplo n.º 29
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteBoolean(this.HangUp);
     writer.WriteVarShort(this.MsgId);
     writer.WriteShort(this.Parameters.Length);
     foreach (String item in this.Parameters)
     {
         writer.WriteUTF(item);
     }
 }
Ejemplo n.º 30
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteUTF(this.GuildOwner);
     writer.WriteShort(this.WorldX);
     writer.WriteShort(this.WorldY);
     writer.WriteVarShort(this.SubAreaId);
     writer.WriteByte(this.NbMount);
     writer.WriteByte(this.NbObject);
     writer.WriteVarLong(this.Price);
 }