public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarLong(this.ExperienceCharacter);
     writer.WriteVarLong(this.ExperienceMount);
     writer.WriteVarLong(this.ExperienceGuild);
     writer.WriteVarLong(this.ExperienceIncarnation);
 }
Example #2
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarShort(this.FightId);
     writer.WriteVarLong(this.SourceId);
     writer.WriteVarLong(this.TargetId);
     writer.WriteBoolean(this.Accept);
 }
Example #3
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);
            }
        }
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteVarLong(this.Kamas);
     writer.WriteVarLong(this.Experience);
     writer.WriteVarInt(this.Pods);
     writer.WriteVarLong(this.ItemsValue);
 }
Example #5
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteByte(this.JobId);
     writer.WriteByte(this.JobLevel);
     writer.WriteVarLong(this.JobXP);
     writer.WriteVarLong(this.JobXpLevelFloor);
     writer.WriteVarLong(this.JobXpNextLevelFloor);
 }
Example #6
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);
 }
Example #7
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarShort(this.DungeonId);
     writer.WriteVarLong(this.InviterId);
     writer.WriteShort(this.InvalidBuddiesIds.Length);
     foreach (long item in this.InvalidBuddiesIds)
     {
         writer.WriteVarLong(item);
     }
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteBoolean(this.AbandonnedPaddock);
     writer.WriteByte(this.Level);
     writer.WriteVarLong(this.ExpLevelFloor);
     writer.WriteVarLong(this.Experience);
     writer.WriteVarLong(this.ExpNextLevelFloor);
     writer.WriteInt(this.CreationDate);
     writer.WriteVarShort(this.NbTotalMembers);
     writer.WriteVarShort(this.NbConnectedMembers);
 }
Example #9
0
        public override void Serialize(ICustomDataWriter writer)
        {
            byte box = 0;

            box = BooleanByteWrapper.SetFlag(box, 0, Sex);
            box = BooleanByteWrapper.SetFlag(box, 1, IsRideable);
            box = BooleanByteWrapper.SetFlag(box, 2, IsWild);
            box = BooleanByteWrapper.SetFlag(box, 3, IsFecondationReady);
            box = BooleanByteWrapper.SetFlag(box, 4, UseHarnessColors);
            writer.WriteByte(box);
            writer.WriteDouble(this.Id_);
            writer.WriteVarInt(this.Model);
            writer.WriteShort(this.Ancestor.Length);
            foreach (int item in this.Ancestor)
            {
                writer.WriteInt(item);
            }
            writer.WriteShort(this.Behaviors.Length);
            foreach (int item in this.Behaviors)
            {
                writer.WriteInt(item);
            }
            writer.WriteUTF(this.Name);
            writer.WriteInt(this.OwnerId);
            writer.WriteVarLong(this.Experience);
            writer.WriteVarLong(this.ExperienceForLevel);
            writer.WriteDouble(this.ExperienceForNextLevel);
            writer.WriteByte(this.Level);
            writer.WriteVarInt(this.MaxPods);
            writer.WriteVarInt(this.Stamina);
            writer.WriteVarInt(this.StaminaMax);
            writer.WriteVarInt(this.Maturity);
            writer.WriteVarInt(this.MaturityForAdult);
            writer.WriteVarInt(this.Energy);
            writer.WriteVarInt(this.EnergyMax);
            writer.WriteInt(this.Serenity);
            writer.WriteInt(this.AggressivityMax);
            writer.WriteVarInt(this.SerenityMax);
            writer.WriteVarInt(this.Love);
            writer.WriteVarInt(this.LoveMax);
            writer.WriteInt(this.FecondationTime);
            writer.WriteInt(this.BoostLimiter);
            writer.WriteDouble(this.BoostMax);
            writer.WriteInt(this.ReproductionCount);
            writer.WriteVarInt(this.ReproductionCountMax);
            writer.WriteVarShort(this.HarnessGID);
            writer.WriteShort(this.EffectList.Length);
            foreach (ObjectEffectInteger item in this.EffectList)
            {
                item.Serialize(writer);
            }
        }
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteVarShort(this.MaxPods);
     writer.WriteVarShort(this.Prospecting);
     writer.WriteVarShort(this.Wisdom);
     writer.WriteByte(this.TaxCollectorsCount);
     writer.WriteInt(this.TaxCollectorAttack);
     writer.WriteVarLong(this.Kamas);
     writer.WriteVarLong(this.Experience);
     writer.WriteVarInt(this.Pods);
     writer.WriteVarLong(this.ItemsValue);
 }
Example #11
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarLong(this.GuestId);
     writer.WriteVarLong(this.HostId);
     writer.WriteUTF(this.Name);
     this.GuestLook.Serialize(writer);
     writer.WriteByte(this.Breed);
     writer.WriteBoolean(this.Sex);
     writer.WriteShort(this.Entities.Length);
     foreach (PartyEntityBaseInformation item in this.Entities)
     {
         item.Serialize(writer);
     }
 }
Example #12
0
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteVarShort(this.ObjectGID);
     writer.WriteShort(this.Effects.Length);
     foreach (ObjectEffect item in this.Effects)
     {
         writer.WriteShort(item.MessageId);
         item.Serialize(writer);
     }
     writer.WriteVarInt(this.ObjectUID);
     writer.WriteVarInt(this.Quantity);
     writer.WriteVarLong(this.ObjectPrice);
     writer.WriteVarLong(this.PublicPrice);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarInt(this.GuildId);
     writer.WriteVarLong(this.LeaderId);
     writer.WriteByte(this.GuildLevel);
     writer.WriteByte(this.NbMembers);
 }
Example #14
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarInt(this.RequestId);
     writer.WriteUTF(this.PlayerName);
     writer.WriteVarLong(this.PlayerId);
     this.Look.Serialize(writer);
 }
Example #15
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarLong(this.PlayerId);
     writer.WriteDouble(this.MonsterGroupId);
     writer.WriteDouble(this.AngryStartTime);
     writer.WriteDouble(this.AttackTime);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarLong(this.MemberId);
     writer.WriteVarShort(this.Rank);
     writer.WriteByte(this.ExperienceGivenPercent);
     writer.WriteVarInt(this.Rights);
 }
Example #17
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteByte(this.MovementType);
     this.BasicInfos.Serialize(writer);
     writer.WriteVarLong(this.PlayerId);
     writer.WriteUTF(this.PlayerName);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarLong(this.CasterId);
     writer.WriteVarShort(this.TargetCellId);
     writer.WriteVarShort(this.SpellId);
     writer.WriteShort(this.SpellLevel);
 }
Example #19
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteByte(this.Type);
     writer.WriteVarShort(this.MonsterId);
     writer.WriteVarLong(this.Kamas);
     writer.WriteDouble(this.DareId);
 }
Example #20
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteUTF(this.Content);
     writer.WriteInt(this.Timestamp);
     writer.WriteVarLong(this.MemberId);
     writer.WriteUTF(this.MemberName);
 }
 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);
 }
Example #22
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);
 }
Example #23
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarLong(this.EntityId);
     writer.WriteVarInt(this.ElemId);
     writer.WriteVarShort(this.SkillId);
     writer.WriteVarShort(this.Duration);
     writer.WriteBoolean(this.CanMove);
 }
Example #24
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteInt(this.AreaId);
     writer.WriteByte(this.AtLeastNbMount);
     writer.WriteByte(this.AtLeastNbMachine);
     writer.WriteVarLong(this.MaxPrice);
     writer.WriteByte(this.OrderBy);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteInt(this.AreaId);
     writer.WriteByte(this.AtLeastNbRoom);
     writer.WriteByte(this.AtLeastNbChest);
     writer.WriteVarShort(this.SkillRequested);
     writer.WriteVarLong(this.MaxPrice);
     writer.WriteByte(this.OrderBy);
 }
Example #26
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteDouble(this.DareId);
     this.Creator.Serialize(writer);
     writer.WriteVarLong(this.SubscriptionFee);
     writer.WriteVarLong(this.Jackpot);
     writer.WriteShort(this.MaxCountWinners);
     writer.WriteDouble(this.EndDate);
     writer.WriteBoolean(this.IsPrivate);
     writer.WriteVarInt(this.GuildId);
     writer.WriteVarInt(this.AllianceId);
     writer.WriteShort(this.Criterions.Length);
     foreach (DareCriteria item in this.Criterions)
     {
         item.Serialize(writer);
     }
     writer.WriteDouble(this.StartDate);
 }
Example #27
0
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteShort(this.OwnersIds.Length);
     foreach (long item in this.OwnersIds)
     {
         writer.WriteVarLong(item);
     }
 }
Example #28
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteShort(this.Objects.Length);
     foreach (short item in this.Objects)
     {
         writer.WriteVarShort(item);
     }
     writer.WriteVarLong(this.Kamas);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteVarLong(this.Id_);
     writer.WriteVarInt(this.LifePoints);
     writer.WriteVarInt(this.MaxLifePoints);
     writer.WriteVarShort(this.Prospecting);
     writer.WriteByte(this.RegenRate);
 }
Example #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);
 }