public FightResultTaxCollectorListEntry(ushort outcome, sbyte wave, FightLoot rewards, double id, bool alive, byte level, BasicGuildInformations guildInfo, int experienceForGuild)
     : base(outcome, wave, rewards, id, alive)
 {
     this.level              = level;
     this.guildInfo          = guildInfo;
     this.experienceForGuild = experienceForGuild;
 }
Ejemplo n.º 2
0
 public FriendOnlineInformations(int accountId,
                                 string accountName,
                                 sbyte playerState,
                                 ushort lastConnection,
                                 int achievementPoints,
                                 ulong playerId,
                                 string playerName,
                                 byte level,
                                 sbyte alignmentSide,
                                 sbyte breed,
                                 bool sex,
                                 BasicGuildInformations guildInfo,
                                 ushort moodSmileyId,
                                 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 override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            this.level = reader.ReadByte();

            if (this.level < 1 || this.level > 200)
            {
                throw new Exception("Forbidden value on level = " + this.level + ", it doesn't respect the following condition : level < 1 || level > 200");
            }
            this.guildInfo = new BasicGuildInformations();
            this.guildInfo.Deserialize(reader);
            this.experienceForGuild = reader.ReadInt();
        }
Ejemplo n.º 4
0
 public FriendSpouseOnlineInformations(int spouseAccountId,
                                       ulong spouseId,
                                       string spouseName,
                                       byte spouseLevel,
                                       sbyte breed,
                                       sbyte sex,
                                       EntityLook spouseEntityLook,
                                       BasicGuildInformations guildInfo,
                                       sbyte alignmentSide,
                                       int mapId,
                                       ushort subAreaId)
     : base(spouseAccountId, spouseId, spouseName, spouseLevel, breed, sex, spouseEntityLook, guildInfo, alignmentSide)
 {
     this.mapId     = mapId;
     this.subAreaId = subAreaId;
 }
Ejemplo n.º 5
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            this.playerId = reader.ReadVarUhLong();

            if (this.playerId < 0 || this.playerId > 9007199254740990)
            {
                throw new Exception("Forbidden value on playerId = " + this.playerId + ", it doesn't respect the following condition : playerId < 0 || playerId > 9007199254740990");
            }
            this.playerName = reader.ReadUTF();
            this.level      = reader.ReadByte();

            if (this.level < 0 || this.level > 200)
            {
                throw new Exception("Forbidden value on level = " + this.level + ", it doesn't respect the following condition : level < 0 || level > 200");
            }
            this.alignmentSide = reader.ReadSByte();
            this.breed         = reader.ReadSByte();

            if (this.breed < (byte)Enums.PlayableBreedEnum.Feca || this.breed > (byte)Enums.PlayableBreedEnum.Huppermage)
            {
                throw new Exception("Forbidden value on breed = "
                                    + this.breed
                                    + ", it doesn't respect the following condition : breed < (byte)Enums.PlayableBreedEnum.Feca || breed > (byte)Enums.PlayableBreedEnum.Huppermage");
            }
            this.sex       = reader.ReadBoolean();
            this.guildInfo = new BasicGuildInformations();
            this.guildInfo.Deserialize(reader);
            this.moodSmileyId = reader.ReadVarUhShort();

            if (this.moodSmileyId < 0)
            {
                throw new Exception("Forbidden value on moodSmileyId = " + this.moodSmileyId + ", it doesn't respect the following condition : moodSmileyId < 0");
            }
            this.status = ProtocolTypeManager.GetInstance <PlayerStatus>(reader.ReadShort());
            this.status.Deserialize(reader);
        }
 public CharacterMinimalAllianceInformations(ulong id, string name, byte level, EntityLook entityLook, BasicGuildInformations guild, BasicAllianceInformations alliance)
     : base(id, name, level, entityLook, guild)
 {
     this.alliance = alliance;
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     this.guild = new BasicGuildInformations();
     this.guild.Deserialize(reader);
 }
 public CharacterMinimalGuildInformations(ulong id, string name, byte level, EntityLook entityLook, BasicGuildInformations guild)
     : base(id, name, level, entityLook)
 {
     this.guild = guild;
 }
 public TaxCollectorGuildInformations(BasicGuildInformations guild)
 {
     this.guild = guild;
 }