Beispiel #1
0
        public virtual void Deserialize(IDataReader reader)
        {
            var limit = reader.ReadUShort();
            var followingCharactersLook_ = new Types.EntityLook[limit];

            for (int i = 0; i < limit; i++)
            {
                followingCharactersLook_[i] = new Types.EntityLook();
                followingCharactersLook_[i].Deserialize(reader);
            }
            followingCharactersLook = followingCharactersLook_;
            emoteId      = reader.ReadSByte();
            emoteEndTime = reader.ReadUShort();
            if (emoteEndTime < 0 || emoteEndTime > 65535)
            {
                throw new Exception("Forbidden value on emoteEndTime = " + emoteEndTime + ", it doesn't respect the following condition : emoteEndTime < 0 || emoteEndTime > 65535");
            }
            restrictions = new Types.ActorRestrictionsInformations();
            restrictions.Deserialize(reader);
            titleId = reader.ReadShort();
            if (titleId < 0)
            {
                throw new Exception("Forbidden value on titleId = " + titleId + ", it doesn't respect the following condition : titleId < 0");
            }
            titleParam = reader.ReadUTF();
        }
 public HumanInformations(Types.EntityLook[] followingCharactersLook, sbyte emoteId, double emoteStartTime, Types.ActorRestrictionsInformations restrictions, short titleId, string titleParam)
 {
     this.followingCharactersLook = followingCharactersLook;
     this.emoteId        = emoteId;
     this.emoteStartTime = emoteStartTime;
     this.restrictions   = restrictions;
     this.titleId        = titleId;
     this.titleParam     = titleParam;
 }
Beispiel #3
0
 public HumanInformations(IEnumerable <Types.EntityLook> followingCharactersLook, sbyte emoteId, ushort emoteEndTime, Types.ActorRestrictionsInformations restrictions, short titleId, string titleParam)
 {
     this.followingCharactersLook = followingCharactersLook;
     this.emoteId      = emoteId;
     this.emoteEndTime = emoteEndTime;
     this.restrictions = restrictions;
     this.titleId      = titleId;
     this.titleParam   = titleParam;
 }
 public HumanInformations(Types.EntityLook[] followingCharactersLook, sbyte emoteId, double emoteStartTime, Types.ActorRestrictionsInformations restrictions, short titleId, string titleParam)
 {
     this.followingCharactersLook = followingCharactersLook;
     this.emoteId = emoteId;
     this.emoteStartTime = emoteStartTime;
     this.restrictions = restrictions;
     this.titleId = titleId;
     this.titleParam = titleParam;
 }
Beispiel #5
0
 public override void Deserialize(IDataReader reader)
 {
     actorId = reader.ReadDouble();
     if (actorId < -9007199254740990 || actorId > 9007199254740990)
     {
         throw new Exception("Forbidden value on actorId = " + actorId + ", it doesn't respect the following condition : actorId < -9007199254740990 || actorId > 9007199254740990");
     }
     restrictions = new Types.ActorRestrictionsInformations();
     restrictions.Deserialize(reader);
 }
 public virtual void Deserialize(ICustomDataInput reader)
 {
     restrictions = new Types.ActorRestrictionsInformations();
     restrictions.Deserialize(reader);
     sex = reader.ReadBoolean();
     var limit = reader.ReadUShort();
     options = new Types.HumanOption[limit];
     for (int i = 0; i < limit; i++)
     {
          (options as Types.HumanOption[])[i] = Types.ProtocolTypeManager.GetInstance<Types.HumanOption>(reader.ReadShort());
          (options as Types.HumanOption[])[i].Deserialize(reader);
     }
 }
        public virtual void Deserialize(IReader reader)
        {
            restrictions = new Types.ActorRestrictionsInformations();
            restrictions.Deserialize(reader);
            sex = reader.ReadBoolean();
            var limit = reader.ReadUShort();

            options = new Types.HumanOption[limit];
            for (int i = 0; i < limit; i++)
            {
                (options as Types.HumanOption[])[i] = ProtocolTypeManager.GetInstance <Types.HumanOption>(reader.ReadUShort());
                (options as Types.HumanOption[])[i].Deserialize(reader);
            }
        }
Beispiel #8
0
        public virtual void Deserialize(ICustomDataInput reader)
        {
            restrictions = new Types.ActorRestrictionsInformations();
            restrictions.Deserialize(reader);
            sex = reader.ReadBoolean();
            var limit = reader.ReadUShort();

            options = new HumanOption[limit];
            for (int i = 0; i < limit; i++)
            {
                options[i] = Types.ProtocolTypeManager.GetInstance <HumanOption>(reader.ReadShort());
                options[i].Deserialize(reader);
            }
        }
 public virtual void Deserialize(IDataReader reader)
 {
     var limit = reader.ReadUShort();
     followingCharactersLook = new Types.EntityLook[limit];
     for (int i = 0; i < limit; i++)
     {
          followingCharactersLook[i] = new Types.EntityLook();
          followingCharactersLook[i].Deserialize(reader);
     }
     emoteId = reader.ReadSByte();
     emoteStartTime = reader.ReadDouble();
     restrictions = new Types.ActorRestrictionsInformations();
     restrictions.Deserialize(reader);
     titleId = reader.ReadShort();
     if (titleId < 0)
         throw new Exception("Forbidden value on titleId = " + titleId + ", it doesn't respect the following condition : titleId < 0");
     titleParam = reader.ReadUTF();
 }
Beispiel #10
0
 public HumanWithGuildInformations(IEnumerable <Types.EntityLook> followingCharactersLook, sbyte emoteId, ushort emoteEndTime, Types.ActorRestrictionsInformations restrictions, short titleId, string titleParam, Types.GuildInformations guildInformations)
     : base(followingCharactersLook, emoteId, emoteEndTime, restrictions, titleId, titleParam)
 {
     this.guildInformations = guildInformations;
 }
Beispiel #11
0
 public SetCharacterRestrictionsMessage(double actorId, Types.ActorRestrictionsInformations restrictions)
 {
     this.actorId      = actorId;
     this.restrictions = restrictions;
 }
 public HumanInformations(Types.ActorRestrictionsInformations restrictions, bool sex, IEnumerable <Types.HumanOption> options)
 {
     this.restrictions = restrictions;
     this.sex          = sex;
     this.options      = options;
 }
 public HumanInformations(Types.ActorRestrictionsInformations restrictions, bool sex, Types.HumanOption[] options)
 {
     this.restrictions = restrictions;
     this.sex = sex;
     this.options = options;
 }
 public override void Deserialize(IDataReader reader)
 {
     restrictions = new Types.ActorRestrictionsInformations();
     restrictions.Deserialize(reader);
 }
 public SetCharacterRestrictionsMessage(Types.ActorRestrictionsInformations restrictions)
 {
     this.restrictions = restrictions;
 }
 public override void Deserialize(BigEndianReader reader)
 {
     restrictions = new Types.ActorRestrictionsInformations();
     restrictions.Deserialize(reader);
 }
 public SetCharacterRestrictionsMessage(Types.ActorRestrictionsInformations restrictions)
 {
     this.restrictions = restrictions;
 }
 public override void Deserialize(IDataReader reader)
 {
     actorId      = reader.ReadDouble();
     restrictions = new Types.ActorRestrictionsInformations();
     restrictions.Deserialize(reader);
 }
 public HumanWithGuildInformations(Types.EntityLook[] followingCharactersLook, sbyte emoteId, double emoteStartTime, Types.ActorRestrictionsInformations restrictions, short titleId, string titleParam, Types.GuildInformations guildInformations)
     : base(followingCharactersLook, emoteId, emoteStartTime, restrictions, titleId, titleParam)
 {
     this.guildInformations = guildInformations;
 }
 public HumanInformations(Types.ActorRestrictionsInformations restrictions, bool sex, IEnumerable<Types.HumanOption> options)
 {
     this.restrictions = restrictions;
     this.sex = sex;
     this.options = options;
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     actorId      = reader.ReadInt();
     restrictions = new Types.ActorRestrictionsInformations();
     restrictions.Deserialize(reader);
 }
 public HumanInformations(Types.ActorRestrictionsInformations restrictions, bool sex, Types.HumanOption[] options)
 {
     this.restrictions = restrictions;
     this.sex          = sex;
     this.options      = options;
 }