Example #1
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarShort(this.SymbolShape);
     writer.WriteInt(this.SymbolColor);
     writer.WriteByte(this.BackgroundShape);
     writer.WriteInt(this.BackgroundColor);
 }
Example #2
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteByte(this.TypeId);
     writer.WriteByte(this.State);
     writer.WriteInt(this.NextVulnerabilityDate);
     writer.WriteInt(this.PlacementDate);
     writer.WriteVarInt(this.RewardTokenCount);
 }
Example #3
0
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteByte(this.PlayerState);
     writer.WriteVarShort(this.LastConnection);
     writer.WriteInt(this.AchievementPoints);
     writer.WriteVarShort(this.LeagueId);
     writer.WriteInt(this.LadderPosition);
 }
Example #4
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarShort(this.CellId);
     writer.WriteByte(this.ZoneSize);
     writer.WriteInt(this.CellColor);
     writer.WriteByte(this.CellsType);
 }
Example #5
0
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteVarInt(this.HouseId);
     writer.WriteInt(this.InstanceId);
     writer.WriteBoolean(this.SecondHand);
 }
Example #6
0
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteByte(this.Level);
     this.GuildInfo.Serialize(writer);
     writer.WriteInt(this.ExperienceForGuild);
 }
Example #7
0
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteDouble(this.SenderId);
     writer.WriteUTF(this.SenderName);
     writer.WriteInt(this.SenderAccountId);
 }
Example #8
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteInt(this.ElementId);
     writer.WriteVarShort(this.ElementCellId);
     writer.WriteVarInt(this.ElementState);
     writer.WriteBoolean(this.OnCurrentMap);
 }
 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.WriteVarShort(this.MsgId);
     writer.WriteInt(this.TimeStamp);
     writer.WriteUTF(this.Owner);
     writer.WriteVarShort(this.ObjectGenericId);
 }
Example #11
0
 protected override void serializeContent(ICustomDataWriter writer)
 {
     writer.WriteByte((byte)Channel);
     writer.WriteUTF(Content);
     writer.WriteInt(TimestampUtils.GetFromNow());
     writer.WriteUTF(Content);
 }
Example #12
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarShort(this.SeasonId);
     writer.WriteVarShort(this.LeagueId);
     writer.WriteInt(this.LadderPosition);
     writer.WriteBoolean(this.EndSeasonReward);
 }
Example #13
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteUTF(this.Content);
     writer.WriteInt(this.Timestamp);
     writer.WriteVarLong(this.MemberId);
     writer.WriteUTF(this.MemberName);
 }
Example #14
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteInt(this.ItemUID);
     writer.WriteInt(this.ObjGenericId);
     writer.WriteShort(this.Effects.Length);
     foreach (ObjectEffect item in this.Effects)
     {
         writer.WriteShort(item.MessageId);
         item.Serialize(writer);
     }
     writer.WriteShort(this.Prices.Length);
     foreach (long item in this.Prices)
     {
         writer.WriteVarLong(item);
     }
 }
Example #15
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarInt(this.HouseId);
     writer.WriteInt(this.InstanceId);
     writer.WriteBoolean(this.Enable);
     writer.WriteVarInt(this.Rights);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarShort(this.FightId);
     writer.WriteByte(this.FightType);
     writer.WriteInt(this.FightStart);
     writer.WriteBoolean(this.FightSpectatorLocked);
 }
Example #17
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
        }
Example #18
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);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteInt(this.RequestId);
     writer.WriteDouble(this.RequesterId);
     writer.WriteVarShort(this.RequesterCellId);
     writer.WriteDouble(this.RequestedId);
     writer.WriteVarShort(this.RequestedCellId);
 }
Example #20
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);
 }
Example #21
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarShort(this.Rank);
     writer.WriteVarShort(this.LeagueId);
     writer.WriteVarShort(this.LeaguePoints);
     writer.WriteVarShort(this.TotalLeaguePoints);
     writer.WriteInt(this.LadderPosition);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteInt(this.InstanceId);
     writer.WriteBoolean(this.SecondHand);
     writer.WriteUTF(this.OwnerName);
     writer.WriteShort(this.WorldX);
     writer.WriteShort(this.WorldY);
     writer.WriteDouble(this.MapId);
     writer.WriteVarShort(this.SubAreaId);
     writer.WriteShort(this.SkillListIds.Length);
     foreach (int item in this.SkillListIds)
     {
         writer.WriteInt(item);
     }
     writer.WriteVarInt(this.GuildshareParams);
 }
Example #23
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.MemberId);
     writer.WriteShort(this.WorldX);
     writer.WriteShort(this.WorldY);
     writer.WriteDouble(this.MapId);
     writer.WriteVarShort(this.SubAreaId);
 }
Example #25
0
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteVarShort(this.OrnamentId);
     writer.WriteVarShort(this.Level);
     writer.WriteVarShort(this.LeagueId);
     writer.WriteInt(this.LadderPosition);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarInt(this.HouseId);
     writer.WriteInt(this.InstanceId);
     writer.WriteBoolean(this.SecondHand);
     this.GuildInfo.Serialize(writer);
     writer.WriteVarInt(this.Rights);
 }
Example #27
0
 protected override void serializeContent(ICustomDataWriter writer)
 {
     writer.WriteByte(0b00);      // Tutorial + CanCreateNewChar
     writer.WriteInt((int)AccountId);
     writer.WriteVarUInt(262143); // Breeds visible
     writer.WriteVarUInt(262143); // Breeds available
     writer.WriteByte(0);         // Status
     writer.WriteDouble(0);       // Unlimited restat end date
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteInt(this.Id_);
     writer.WriteShort(this.Steps.Length);
     foreach (byte item in this.Steps)
     {
         writer.WriteByte(item);
     }
 }
Example #29
0
        public override void Serialize(ICustomDataWriter writer)
        {
            byte box = 0;

            box = BooleanByteWrapper.SetFlag(box, 0, Success);
            box = BooleanByteWrapper.SetFlag(box, 1, AutomaticAction);
            writer.WriteByte(box);
            writer.WriteInt(this.ActionId);
        }
 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);
 }