コード例 #1
0
 public virtual void Deserialize(IReader reader)
 {
     firstNameId   = reader.ReadVarUhShort();
     lastNameId    = reader.ReadVarUhShort();
     guildIdentity = new Types.GuildInformations();
     guildIdentity.Deserialize(reader);
 }
コード例 #2
0
 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);
 }
コード例 #6
0
 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;
 }
コード例 #7
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;
 }
コード例 #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;
 }
コード例 #9
0
public override void Deserialize(ICustomDataInput reader)
{

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

}
コード例 #10
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();
 }
コード例 #11
0
 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();
 }
コード例 #16
0
 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);
            }
        }
コード例 #18
0
 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");
 }
コード例 #20
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;
 }
コード例 #23
0
 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;
 }
コード例 #24
0
 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");
     }
 }
コード例 #26
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();
 }
コード例 #29
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.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);
 }
コード例 #33
0
 public HouseGuildRightsMessage(short houseId, Types.GuildInformations guildInfo, uint rights)
 {
     this.houseId = houseId;
     this.guildInfo = guildInfo;
     this.rights = rights;
 }
コード例 #34
0
 public TaxCollectorStaticExtendedInformations(short firstNameId, short lastNameId, Types.GuildInformations guildIdentity, Types.AllianceInformations allianceIdentity)
     : base(firstNameId, lastNameId, guildIdentity)
 {
     this.allianceIdentity = allianceIdentity;
 }
コード例 #35
0
 public GuildJoinedMessage(Types.GuildInformations guildInfo, uint memberRights, bool enabled)
 {
     this.guildInfo = guildInfo;
     this.memberRights = memberRights;
     this.enabled = enabled;
 }
コード例 #36
0
 public GuildMembershipMessage(Types.GuildInformations guildInfo, uint memberRights, bool enabled)
     : base(guildInfo, memberRights, enabled)
 {
 }
コード例 #37
0
 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;
 }
コード例 #38
0
 public HouseInformationsExtended(int houseId, int[] doorsOnMap, string ownerName, short modelId, Types.GuildInformations guildInfo)
     : base(houseId, doorsOnMap, ownerName, modelId)
 {
     this.guildInfo = guildInfo;
 }
コード例 #39
0
 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);
 }
コード例 #44
0
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     guildInfo = new Types.GuildInformations();
     guildInfo.Deserialize(reader);
 }
コード例 #45
0
 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;
 }
コード例 #50
0
 public PaddockPrivateInformations(short maxOutdoorMount, short maxItems, int price, bool locked, int guildId, Types.GuildInformations guildInfo)
     : base(maxOutdoorMount, maxItems, price, locked, guildId)
 {
     this.guildInfo = guildInfo;
 }