Пример #1
0
 public virtual void Deserialize(IReader reader)
 {
     firstNameId   = reader.ReadVarUhShort();
     lastNameId    = reader.ReadVarUhShort();
     guildIdentity = new Types.GuildInformations();
     guildIdentity.Deserialize(reader);
 }
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     deserted  = reader.ReadBoolean();
     guildInfo = new Types.GuildInformations();
     guildInfo.Deserialize(reader);
 }
Пример #3
0
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            byte flag1 = reader.ReadByte();

            sex            = BooleanByteWrapper.GetFlag(flag1, 0);
            havenBagShared = BooleanByteWrapper.GetFlag(flag1, 1);
            playerId       = reader.ReadVarLong();
            if (playerId < 0 || playerId > 9007199254740990)
            {
                throw new Exception("Forbidden value on playerId = " + playerId + ", it doesn't respect the following condition : playerId < 0 || playerId > 9007199254740990");
            }
            playerName = reader.ReadUTF();
            level      = reader.ReadSByte();
            if (level < 0 || level > 206)
            {
                throw new Exception("Forbidden value on level = " + level + ", it doesn't respect the following condition : level < 0 || level > 206");
            }
            alignmentSide = reader.ReadSByte();
            breed         = reader.ReadSByte();
            guildInfo     = new Types.GuildInformations();
            guildInfo.Deserialize(reader);
            moodSmileyId = reader.ReadVarShort();
            if (moodSmileyId < 0)
            {
                throw new Exception("Forbidden value on moodSmileyId = " + moodSmileyId + ", it doesn't respect the following condition : moodSmileyId < 0");
            }
            status = Types.ProtocolTypeManager.GetInstance <PlayerStatus>(reader.ReadShort());
            status.Deserialize(reader);
        }
Пример #4
0
 public virtual void Deserialize(IDataReader reader)
 {
     spouseAccountId = reader.ReadInt();
     if (spouseAccountId < 0)
     {
         throw new Exception("Forbidden value on spouseAccountId = " + spouseAccountId + ", it doesn't respect the following condition : spouseAccountId < 0");
     }
     spouseId = reader.ReadVarLong();
     if (spouseId < 0 || spouseId > 9007199254740990)
     {
         throw new Exception("Forbidden value on spouseId = " + spouseId + ", it doesn't respect the following condition : spouseId < 0 || spouseId > 9007199254740990");
     }
     spouseName  = reader.ReadUTF();
     spouseLevel = reader.ReadByte();
     if (spouseLevel < 1 || spouseLevel > 200)
     {
         throw new Exception("Forbidden value on spouseLevel = " + spouseLevel + ", it doesn't respect the following condition : spouseLevel < 1 || spouseLevel > 200");
     }
     breed            = reader.ReadSByte();
     sex              = reader.ReadSByte();
     spouseEntityLook = new Types.EntityLook();
     spouseEntityLook.Deserialize(reader);
     guildInfo = new Types.GuildInformations();
     guildInfo.Deserialize(reader);
     alignmentSide = reader.ReadSByte();
 }
Пример #5
0
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     playerId = reader.ReadVarLong();
     if (playerId < 0 || playerId > 9007199254740990)
     {
         throw new Exception("Forbidden value on playerId = " + playerId + ", it doesn't respect the following condition : playerId < 0 || playerId > 9007199254740990");
     }
     playerName = reader.ReadUTF();
     level      = reader.ReadByte();
     if (level < 0 || level > 200)
     {
         throw new Exception("Forbidden value on level = " + level + ", it doesn't respect the following condition : level < 0 || level > 200");
     }
     alignmentSide = reader.ReadSByte();
     breed         = reader.ReadSByte();
     if (breed < (byte)Enums.PlayableBreedEnum.Feca || breed > (byte)Enums.PlayableBreedEnum.Huppermage)
     {
         throw new Exception("Forbidden value on breed = " + breed + ", it doesn't respect the following condition : breed < (byte)Enums.PlayableBreedEnum.Feca || breed > (byte)Enums.PlayableBreedEnum.Huppermage");
     }
     sex       = reader.ReadBoolean();
     guildInfo = new Types.GuildInformations();
     guildInfo.Deserialize(reader);
     moodSmileyId = reader.ReadVarShort();
     if (moodSmileyId < 0)
     {
         throw new Exception("Forbidden value on moodSmileyId = " + moodSmileyId + ", it doesn't respect the following condition : moodSmileyId < 0");
     }
     status = Types.ProtocolTypeManager.GetInstance <Types.PlayerStatus>(reader.ReadShort());
     status.Deserialize(reader);
 }
 public HouseGuildRightsMessage(uint houseId, int instanceId, bool secondHand, Types.GuildInformations guildInfo, uint rights)
 {
     this.houseId    = houseId;
     this.instanceId = instanceId;
     this.secondHand = secondHand;
     this.guildInfo  = guildInfo;
     this.rights     = rights;
 }
 public GameRolePlayTaxCollectorInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, short firstNameId, short lastNameId, Types.GuildInformations guildIdentity, byte guildLevel, int taxCollectorAttack)
     : base(contextualId, look, disposition)
 {
     this.firstNameId = firstNameId;
     this.lastNameId = lastNameId;
     this.guildIdentity = guildIdentity;
     this.guildLevel = guildLevel;
     this.taxCollectorAttack = taxCollectorAttack;
 }
Пример #8
0
 public GameRolePlayTaxCollectorInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, short firstNameId, short lastNameId, Types.GuildInformations guildIdentity, byte guildLevel, int taxCollectorAttack)
     : base(contextualId, look, disposition)
 {
     this.firstNameId        = firstNameId;
     this.lastNameId         = lastNameId;
     this.guildIdentity      = guildIdentity;
     this.guildLevel         = guildLevel;
     this.taxCollectorAttack = taxCollectorAttack;
 }
public override void Deserialize(ICustomDataInput reader)
{

base.Deserialize(reader);
            guildInfo = new Types.GuildInformations();
            guildInfo.Deserialize(reader);
            

}
 public override void Deserialize(IDataReader reader)
 {
     guildInfo = new Types.GuildInformations();
     guildInfo.Deserialize(reader);
     memberRights = reader.ReadUInt();
     if (memberRights < 0 || memberRights > 4294967295)
         throw new Exception("Forbidden value on memberRights = " + memberRights + ", it doesn't respect the following condition : memberRights < 0 || memberRights > 4294967295");
     enabled = reader.ReadBoolean();
 }
 public override void Deserialize(IDataReader reader)
 {
     houseId    = reader.ReadVarUhInt();
     instanceId = reader.ReadInt();
     secondHand = reader.ReadBoolean();
     guildInfo  = new Types.GuildInformations();
     guildInfo.Deserialize(reader);
     rights = reader.ReadVarUhInt();
 }
Пример #12
0
 public override void Deserialize(ICustomDataInput reader)
 {
     guildInfo = new Types.GuildInformations();
     guildInfo.Deserialize(reader);
     memberRights = reader.ReadVarUhInt();
     if (memberRights < 0)
         throw new Exception("Forbidden value on memberRights = " + memberRights + ", it doesn't respect the following condition : memberRights < 0");
     enabled = reader.ReadBoolean();
 }
Пример #13
0
 public override void Deserialize(BigEndianReader reader)
 {
     var limit = reader.ReadUShort();
     guilds = new Types.GuildInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          guilds[i] = new Types.GuildInformations();
          guilds[i].Deserialize(reader);
     }
 }
Пример #14
0
 public override void Deserialize(IDataReader reader)
 {
     guildInfo = new Types.GuildInformations();
     guildInfo.Deserialize(reader);
     memberRights = reader.ReadVarInt();
     if (memberRights < 0)
     {
         throw new Exception("Forbidden value on memberRights = " + memberRights + ", it doesn't respect the following condition : memberRights < 0");
     }
 }
Пример #15
0
 public override void Deserialize(IDataReader reader)
 {
     guildInfo = new Types.GuildInformations();
     guildInfo.Deserialize(reader);
     memberRights = reader.ReadUInt();
     if (memberRights < 0 || memberRights > 4294967295)
     {
         throw new Exception("Forbidden value on memberRights = " + memberRights + ", it doesn't respect the following condition : memberRights < 0 || memberRights > 4294967295");
     }
     enabled = reader.ReadBoolean();
 }
 public virtual void Deserialize(ICustomDataInput reader)
 {
     firstNameId = reader.ReadVarUhShort();
     if (firstNameId < 0)
         throw new Exception("Forbidden value on firstNameId = " + firstNameId + ", it doesn't respect the following condition : firstNameId < 0");
     lastNameId = reader.ReadVarUhShort();
     if (lastNameId < 0)
         throw new Exception("Forbidden value on lastNameId = " + lastNameId + ", it doesn't respect the following condition : lastNameId < 0");
     guildIdentity = new Types.GuildInformations();
     guildIdentity.Deserialize(reader);
 }
Пример #17
0
        public override void Deserialize(BigEndianReader reader)
        {
            var limit = reader.ReadUShort();

            guilds = new Types.GuildInformations[limit];
            for (int i = 0; i < limit; i++)
            {
                guilds[i] = new Types.GuildInformations();
                guilds[i].Deserialize(reader);
            }
        }
 public override void Deserialize(IDataReader reader)
 {
     houseId = reader.ReadShort();
     if (houseId < 0)
         throw new Exception("Forbidden value on houseId = " + houseId + ", it doesn't respect the following condition : houseId < 0");
     guildInfo = new Types.GuildInformations();
     guildInfo.Deserialize(reader);
     rights = reader.ReadUInt();
     if (rights < 0 || rights > 4294967295)
         throw new Exception("Forbidden value on rights = " + rights + ", it doesn't respect the following condition : rights < 0 || rights > 4294967295");
 }
Пример #19
0
 public override void Deserialize(ICustomDataInput reader)
 {
     houseId = reader.ReadVarUhInt();
     if (houseId < 0)
         throw new Exception("Forbidden value on houseId = " + houseId + ", it doesn't respect the following condition : houseId < 0");
     guildInfo = new Types.GuildInformations();
     guildInfo.Deserialize(reader);
     rights = reader.ReadVarUhInt();
     if (rights < 0)
         throw new Exception("Forbidden value on rights = " + rights + ", it doesn't respect the following condition : rights < 0");
 }
 public FriendSpouseInformations(int spouseAccountId, double spouseId, string spouseName, uint spouseLevel, sbyte breed, sbyte sex, Types.EntityLook spouseEntityLook, Types.GuildInformations guildInfo, sbyte alignmentSide)
 {
     this.spouseAccountId  = spouseAccountId;
     this.spouseId         = spouseId;
     this.spouseName       = spouseName;
     this.spouseLevel      = spouseLevel;
     this.breed            = breed;
     this.sex              = sex;
     this.spouseEntityLook = spouseEntityLook;
     this.guildInfo        = guildInfo;
     this.alignmentSide    = alignmentSide;
 }
Пример #21
0
        public override void Deserialize(IDataReader reader)
        {
            var limit   = reader.ReadUShort();
            var guilds_ = new Types.GuildInformations[limit];

            for (int i = 0; i < limit; i++)
            {
                guilds_[i] = new Types.GuildInformations();
                guilds_[i].Deserialize(reader);
            }
            guilds = guilds_;
        }
Пример #22
0
 public FriendOnlineInformations(int accountId, string accountName, sbyte playerState, short lastConnection, int achievementPoints, long playerId, string playerName, byte level, sbyte alignmentSide, sbyte breed, bool sex, Types.GuildInformations guildInfo, short moodSmileyId, Types.PlayerStatus status)
     : base(accountId, accountName, playerState, lastConnection, achievementPoints)
 {
     this.playerId      = playerId;
     this.playerName    = playerName;
     this.level         = level;
     this.alignmentSide = alignmentSide;
     this.breed         = breed;
     this.sex           = sex;
     this.guildInfo     = guildInfo;
     this.moodSmileyId  = moodSmileyId;
     this.status        = status;
 }
 public FriendOnlineInformations(int accountId, string accountName, sbyte playerState, uint lastConnection, int achievementPoints, int leagueId, int ladderPosition, bool sex, bool havenBagShared, double playerId, string playerName, uint level, sbyte alignmentSide, sbyte breed, Types.GuildInformations guildInfo, uint moodSmileyId, Types.PlayerStatus status)
     : base(accountId, accountName, playerState, lastConnection, achievementPoints, leagueId, ladderPosition)
 {
     this.sex            = sex;
     this.havenBagShared = havenBagShared;
     this.playerId       = playerId;
     this.playerName     = playerName;
     this.level          = level;
     this.alignmentSide  = alignmentSide;
     this.breed          = breed;
     this.guildInfo      = guildInfo;
     this.moodSmileyId   = moodSmileyId;
     this.status         = status;
 }
 public virtual void Deserialize(IDataReader reader)
 {
     spouseAccountId  = reader.ReadInt();
     spouseId         = reader.ReadVarUhLong();
     spouseName       = reader.ReadUTF();
     spouseLevel      = reader.ReadVarUhShort();
     breed            = reader.ReadSbyte();
     sex              = reader.ReadSbyte();
     spouseEntityLook = new Types.EntityLook();
     spouseEntityLook.Deserialize(reader);
     guildInfo = new Types.GuildInformations();
     guildInfo.Deserialize(reader);
     alignmentSide = reader.ReadSbyte();
 }
Пример #25
0
 public override void Deserialize(ICustomDataInput reader)
 {
     houseId = reader.ReadVarUhInt();
     if (houseId < 0)
     {
         throw new Exception("Forbidden value on houseId = " + houseId + ", it doesn't respect the following condition : houseId < 0");
     }
     guildInfo = new Types.GuildInformations();
     guildInfo.Deserialize(reader);
     rights = reader.ReadVarUhInt();
     if (rights < 0)
     {
         throw new Exception("Forbidden value on rights = " + rights + ", it doesn't respect the following condition : rights < 0");
     }
 }
 public virtual void Deserialize(BigEndianReader reader)
 {
     firstNameId = reader.ReadVarShort();
     if (firstNameId < 0)
     {
         throw new Exception("Forbidden value on firstNameId = " + firstNameId + ", it doesn't respect the following condition : firstNameId < 0");
     }
     lastNameId = reader.ReadVarShort();
     if (lastNameId < 0)
     {
         throw new Exception("Forbidden value on lastNameId = " + lastNameId + ", it doesn't respect the following condition : lastNameId < 0");
     }
     guildIdentity = new Types.GuildInformations();
     guildIdentity.Deserialize(reader);
 }
Пример #27
0
 public override void Deserialize(BigEndianReader reader)
 {
     houseId = reader.ReadShort();
     if (houseId < 0)
     {
         throw new Exception("Forbidden value on houseId = " + houseId + ", it doesn't respect the following condition : houseId < 0");
     }
     guildInfo = new Types.GuildInformations();
     guildInfo.Deserialize(reader);
     rights = reader.ReadUInt();
     if (rights < 0 || rights > 4.294967295E9)
     {
         throw new Exception("Forbidden value on rights = " + rights + ", it doesn't respect the following condition : rights < 0 || rights > 4.294967295E9");
     }
 }
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     firstNameId = reader.ReadShort();
     if (firstNameId < 0)
         throw new Exception("Forbidden value on firstNameId = " + firstNameId + ", it doesn't respect the following condition : firstNameId < 0");
     lastNameId = reader.ReadShort();
     if (lastNameId < 0)
         throw new Exception("Forbidden value on lastNameId = " + lastNameId + ", it doesn't respect the following condition : lastNameId < 0");
     guildIdentity = new Types.GuildInformations();
     guildIdentity.Deserialize(reader);
     guildLevel = reader.ReadByte();
     if (guildLevel < 0 || guildLevel > 255)
         throw new Exception("Forbidden value on guildLevel = " + guildLevel + ", it doesn't respect the following condition : guildLevel < 0 || guildLevel > 255");
     taxCollectorAttack = reader.ReadInt();
 }
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            byte flag1 = reader.ReadByte();

            sex            = BooleanByteWrapper.GetFlag(flag1, 0);
            havenBagShared = BooleanByteWrapper.GetFlag(flag1, 1);
            playerId       = reader.ReadVarUhLong();
            playerName     = reader.ReadUTF();
            level          = reader.ReadVarUhShort();
            alignmentSide  = reader.ReadSbyte();
            breed          = reader.ReadSbyte();
            guildInfo      = new Types.GuildInformations();
            guildInfo.Deserialize(reader);
            moodSmileyId = reader.ReadVarUhShort();
            status       = ProtocolTypeManager.GetInstance <Types.PlayerStatus>(reader.ReadUShort());
            status.Deserialize(reader);
        }
Пример #30
0
 public override void Deserialize(IDataReader reader)
 {
     houseId = reader.ReadVarInt();
     if (houseId < 0)
     {
         throw new Exception("Forbidden value on houseId = " + houseId + ", it doesn't respect the following condition : houseId < 0");
     }
     instanceId = reader.ReadInt();
     if (instanceId < 0)
     {
         throw new Exception("Forbidden value on instanceId = " + instanceId + ", it doesn't respect the following condition : instanceId < 0");
     }
     secondHand = reader.ReadBoolean();
     guildInfo  = new Types.GuildInformations();
     guildInfo.Deserialize(reader);
     rights = reader.ReadVarInt();
     if (rights < 0)
     {
         throw new Exception("Forbidden value on rights = " + rights + ", it doesn't respect the following condition : rights < 0");
     }
 }
Пример #31
0
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     firstNameId = reader.ReadShort();
     if (firstNameId < 0)
     {
         throw new Exception("Forbidden value on firstNameId = " + firstNameId + ", it doesn't respect the following condition : firstNameId < 0");
     }
     lastNameId = reader.ReadShort();
     if (lastNameId < 0)
     {
         throw new Exception("Forbidden value on lastNameId = " + lastNameId + ", it doesn't respect the following condition : lastNameId < 0");
     }
     guildIdentity = new Types.GuildInformations();
     guildIdentity.Deserialize(reader);
     guildLevel = reader.ReadByte();
     if (guildLevel < 0 || guildLevel > 255)
     {
         throw new Exception("Forbidden value on guildLevel = " + guildLevel + ", it doesn't respect the following condition : guildLevel < 0 || guildLevel > 255");
     }
     taxCollectorAttack = reader.ReadInt();
 }
Пример #32
0
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     guildInformations = new Types.GuildInformations();
     guildInformations.Deserialize(reader);
 }
 public HouseGuildRightsMessage(short houseId, Types.GuildInformations guildInfo, uint rights)
 {
     this.houseId = houseId;
     this.guildInfo = guildInfo;
     this.rights = rights;
 }
 public TaxCollectorStaticExtendedInformations(short firstNameId, short lastNameId, Types.GuildInformations guildIdentity, Types.AllianceInformations allianceIdentity)
     : base(firstNameId, lastNameId, guildIdentity)
 {
     this.allianceIdentity = allianceIdentity;
 }
 public GuildJoinedMessage(Types.GuildInformations guildInfo, uint memberRights, bool enabled)
 {
     this.guildInfo = guildInfo;
     this.memberRights = memberRights;
     this.enabled = enabled;
 }
 public GuildMembershipMessage(Types.GuildInformations guildInfo, uint memberRights, bool enabled)
     : base(guildInfo, memberRights, enabled)
 {
 }
 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 HouseInformationsExtended(int houseId, int[] doorsOnMap, string ownerName, short modelId, Types.GuildInformations guildInfo)
     : base(houseId, doorsOnMap, ownerName, modelId)
 {
     this.guildInfo = guildInfo;
 }
 public TaxCollectorStaticInformations(ushort firstNameId, ushort lastNameId, Types.GuildInformations guildIdentity)
 {
     this.firstNameId = firstNameId;
     this.lastNameId = lastNameId;
     this.guildIdentity = guildIdentity;
 }
Пример #40
0
 public GuildJoinedMessage(Types.GuildInformations guildInfo, uint memberRights, bool enabled)
 {
     this.guildInfo    = guildInfo;
     this.memberRights = memberRights;
     this.enabled      = enabled;
 }
Пример #41
0
 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     guildInfo = new Types.GuildInformations();
     guildInfo.Deserialize(reader);
 }
Пример #42
0
 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     guildInformations = new Types.GuildInformations();
     guildInformations.Deserialize(reader);
 }
Пример #43
0
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     guildInformations = new Types.GuildInformations();
     guildInformations.Deserialize(reader);
 }
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     guildInfo = new Types.GuildInformations();
     guildInfo.Deserialize(reader);
 }
 public HouseInformationsExtended(bool isOnSale, bool isSaleLocked, int houseId, int[] doorsOnMap, string ownerName, short modelId, Types.GuildInformations guildInfo)
     : base(isOnSale, isSaleLocked, houseId, doorsOnMap, ownerName, modelId)
 {
     this.guildInfo = guildInfo;
 }
 public GameRolePlayMerchantWithGuildInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, string name, int sellType, Types.GuildInformations guildInformations)
     : base(contextualId, look, disposition, name, sellType)
 {
     this.guildInformations = guildInformations;
 }
Пример #47
0
 public HouseInformationsExtended(bool isOnSale, bool isSaleLocked, int houseId, IEnumerable <int> doorsOnMap, string ownerName, short modelId, Types.GuildInformations guildInfo)
     : base(isOnSale, isSaleLocked, houseId, doorsOnMap, ownerName, modelId)
 {
     this.guildInfo = guildInfo;
 }
Пример #48
0
 public HumanOptionGuild(Types.GuildInformations guildInformations)
 {
     this.guildInformations = guildInformations;
 }
Пример #49
0
 public PaddockPrivateInformations(uint maxOutdoorMount, uint maxItems, uint price, bool locked, int guildId, Types.GuildInformations guildInfo)
     : base(maxOutdoorMount, maxItems, price, locked, guildId)
 {
     this.guildInfo = guildInfo;
 }
 public PaddockPrivateInformations(short maxOutdoorMount, short maxItems, int price, bool locked, int guildId, Types.GuildInformations guildInfo)
     : base(maxOutdoorMount, maxItems, price, locked, guildId)
 {
     this.guildInfo = guildInfo;
 }