public virtual void Serialize(BigEndianWriter writer)
 {
     writer.WriteInt(ContextualId);
     Look.Serialize(writer);
     writer.WriteShort(Disposition.TypeId);
     Disposition.Serialize(writer);
 }
 public virtual void Serialize(BigEndianWriter writer)
 {
     writer.WriteShort(ActionId);
     writer.WriteInt(SourceId);
     writer.WriteShort(Effect.TypeId);
     Effect.Serialize(writer);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteShort(HumanoidInfo.TypeId);
     HumanoidInfo.Serialize(writer);
     writer.WriteInt(AccountId);
 }
Exemple #4
0
        private void BuildPacket(BigEndianWriter writer)
        {
            byte[] data = writer.Data;

            writer.Clear();

            int messageLenghtType = ComputeTypeLen(data.Length);
            short header = ComputeStaticHeader((int) MessageId, messageLenghtType);

            writer.WriteShort(header);

            switch (messageLenghtType)
            {
                case 1:
                    writer.WriteByte((byte) data.Length);
                    break;
                case 2:
                    writer.WriteShort((short) data.Length);
                    break;
                case 3:
                    writer.WriteByte((byte) (data.Length >> 16 & 255));
                    writer.WriteShort((short) (data.Length & 65535));
                    break;
            }

            writer.WriteBytes(data);
        }
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteSByte(DeathState);
     writer.WriteShort(DeathCount);
     writer.WriteByte(DeathMaxLevel);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     byte flag1 = 0;
     flag1 = BooleanByteWrapper.SetFlag(flag1, 0, Enable);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 1, Invisible);
     writer.WriteByte(flag1);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteByte(Level);
     GuildInfo.Serialize(writer);
     writer.WriteInt(ExperienceForGuild);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     byte flag1 = 0;
     flag1 = BooleanByteWrapper.SetFlag(flag1, 0, CanChangeName);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 1, CanChangeEmblem);
     writer.WriteByte(flag1);
 }
Exemple #9
0
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteByte(Position);
     writer.WriteInt(SpellId);
     writer.WriteSByte(SpellLevel);
 }
Exemple #10
0
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteInt(MountId);
     writer.WriteDouble(Date);
     writer.WriteShort(ModelId);
 }
Exemple #11
0
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteShort(Days);
     writer.WriteShort(Hours);
     writer.WriteShort(Minutes);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteInt(TargetId);
     writer.WriteShort(StateId);
     writer.WriteBoolean(Active);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteShort(MarkId);
     writer.WriteInt(TriggeringCharacterId);
     writer.WriteShort(TriggeredSpellId);
 }
Exemple #14
0
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteSByte(PlayerState);
     writer.WriteInt(LastConnection);
     writer.WriteInt(AchievementPoints);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteInt(TargetId);
     writer.WriteShort(StartCellId);
     writer.WriteShort(EndCellId);
 }
Exemple #16
0
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteShort(DiceNum);
     writer.WriteShort(DiceSide);
     writer.WriteShort(DiceConst);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteInt(AccountId);
     writer.WriteInt(PlayerId);
     writer.WriteShort(Status.TypeId);
     Status.Serialize(writer);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteInt(TargetId);
     writer.WriteShort(Loss);
     writer.WriteShort(PermanentDamages);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteShort(FirstNameId);
     writer.WriteShort(LastNameId);
     writer.WriteShort(Level);
 }
Exemple #20
0
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteInt(SenderId);
     writer.WriteUTF(SenderName);
     writer.WriteInt(SenderAccountId);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteShort(NpcId);
     writer.WriteBoolean(Sex);
     writer.WriteShort(SpecialArtworkId);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteUShort((ushort) PaddockItemDescription.Length);
     foreach (var entry in PaddockItemDescription)
     {
         entry.Serialize(writer);
     }
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteUShort((ushort) TypeDescription.Length);
     foreach (var entry in TypeDescription)
     {
         writer.WriteInt(entry);
     }
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteUShort((ushort) Figures.Length);
     foreach (var entry in Figures)
     {
         entry.Serialize(writer);
     }
 }
 public override void Serialize(BigEndianWriter writer)
 {
     byte flag1 = 0;
     flag1 = BooleanByteWrapper.SetFlag(flag1, 0, Success);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 1, Session);
     writer.WriteByte(flag1);
     writer.WriteUTF(Name);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteUShort((ushort) Cells.Length);
     foreach (var entry in Cells)
     {
         writer.WriteShort(entry);
     }
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteUShort((ushort) ItemTypeDescriptions.Length);
     foreach (var entry in ItemTypeDescriptions)
     {
         entry.Serialize(writer);
     }
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteUShort((ushort) ObjectsUIDAndQty.Length);
     foreach (var entry in ObjectsUIDAndQty)
     {
         entry.Serialize(writer);
     }
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteUShort((ushort) ObjectUID.Length);
     foreach (var entry in ObjectUID)
     {
         writer.WriteInt(entry);
     }
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteUShort((ushort) HousesInformations.Length);
     foreach (var entry in HousesInformations)
     {
         entry.Serialize(writer);
     }
 }