public override void Deserialize(BigEndianReader reader) { ready = reader.ReadBoolean(); step = reader.ReadVarShort(); if (step < 0) throw new Exception("Forbidden value on step = " + step + ", it doesn't respect the following condition : step < 0"); }
public override void Deserialize(BigEndianReader reader) { kicked = reader.ReadBoolean(); guildId = reader.ReadVarInt(); if (guildId < 0) throw new Exception("Forbidden value on guildId = " + guildId + ", it doesn't respect the following condition : guildId < 0"); }
public override void Deserialize(BigEndianReader reader) { memberId = reader.ReadVarInt(); if (memberId < 0) throw new Exception("Forbidden value on memberId = " + memberId + ", it doesn't respect the following condition : memberId < 0"); online = reader.ReadBoolean(); }
public virtual void Deserialize(BigEndianReader reader) { modelId = reader.ReadVarInt(); if (modelId < 0) throw new Exception("Forbidden value on modelId = " + modelId + ", it doesn't respect the following condition : modelId < 0"); ownerName = reader.ReadUTF(); ownerConnected = reader.ReadBoolean(); worldX = reader.ReadShort(); if (worldX < -255 || worldX > 255) throw new Exception("Forbidden value on worldX = " + worldX + ", it doesn't respect the following condition : worldX < -255 || worldX > 255"); worldY = reader.ReadShort(); if (worldY < -255 || worldY > 255) throw new Exception("Forbidden value on worldY = " + worldY + ", it doesn't respect the following condition : worldY < -255 || worldY > 255"); subAreaId = reader.ReadVarShort(); if (subAreaId < 0) throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0"); nbRoom = reader.ReadSByte(); nbChest = reader.ReadSByte(); var limit = reader.ReadUShort(); skillListIds = new int[limit]; for (int i = 0; i < limit; i++) { skillListIds[i] = reader.ReadInt(); } isLocked = reader.ReadBoolean(); price = reader.ReadVarInt(); if (price < 0) throw new Exception("Forbidden value on price = " + price + ", it doesn't respect the following condition : price < 0"); }
public override void Deserialize(BigEndianReader reader) { enable = reader.ReadBoolean(); rights = reader.ReadVarInt(); if (rights < 0) throw new Exception("Forbidden value on rights = " + rights + ", it doesn't respect the following condition : rights < 0"); }
public override void Deserialize(BigEndianReader reader) { base.Deserialize(reader); breed = reader.ReadSByte(); sex = reader.ReadBoolean(); rank = reader.ReadVarShort(); if (rank < 0) throw new Exception("Forbidden value on rank = " + rank + ", it doesn't respect the following condition : rank < 0"); givenExperience = reader.ReadVarUhLong(); if (givenExperience < 0 || givenExperience > 9.007199254740992E15) throw new Exception("Forbidden value on givenExperience = " + givenExperience + ", it doesn't respect the following condition : givenExperience < 0 || givenExperience > 9.007199254740992E15"); experienceGivenPercent = reader.ReadSByte(); if (experienceGivenPercent < 0 || experienceGivenPercent > 100) throw new Exception("Forbidden value on experienceGivenPercent = " + experienceGivenPercent + ", it doesn't respect the following condition : experienceGivenPercent < 0 || experienceGivenPercent > 100"); rights = reader.ReadVarInt(); if (rights < 0) throw new Exception("Forbidden value on rights = " + rights + ", it doesn't respect the following condition : rights < 0"); connected = reader.ReadSByte(); if (connected < 0) throw new Exception("Forbidden value on connected = " + connected + ", it doesn't respect the following condition : connected < 0"); alignmentSide = reader.ReadSByte(); hoursSinceLastConnection = reader.ReadUShort(); if (hoursSinceLastConnection < 0 || hoursSinceLastConnection > 65535) throw new Exception("Forbidden value on hoursSinceLastConnection = " + hoursSinceLastConnection + ", it doesn't respect the following condition : hoursSinceLastConnection < 0 || hoursSinceLastConnection > 65535"); moodSmileyId = reader.ReadSByte(); accountId = reader.ReadInt(); if (accountId < 0) throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0"); achievementPoints = reader.ReadInt(); status = (PlayerStatus)Types.ProtocolTypeManager.GetInstance<Types.PlayerStatus>(reader.ReadShort()); status.Deserialize(reader); }
public override void Deserialize(BigEndianReader reader) { addedOrDeleted = reader.ReadBoolean(); jobId = reader.ReadSByte(); if (jobId < 0) throw new Exception("Forbidden value on jobId = " + jobId + ", it doesn't respect the following condition : jobId < 0"); }
public override void Deserialize(BigEndianReader reader) { challengeId = reader.ReadVarShort(); if (challengeId < 0) throw new Exception("Forbidden value on challengeId = " + challengeId + ", it doesn't respect the following condition : challengeId < 0"); success = reader.ReadBoolean(); }
public virtual void Deserialize(BigEndianReader reader) { fightId = reader.ReadInt(); fightType = reader.ReadSByte(); if (fightType < 0) throw new Exception("Forbidden value on fightType = " + fightType + ", it doesn't respect the following condition : fightType < 0"); fightStart = reader.ReadInt(); if (fightStart < 0) throw new Exception("Forbidden value on fightStart = " + fightStart + ", it doesn't respect the following condition : fightStart < 0"); fightSpectatorLocked = reader.ReadBoolean(); var limit = reader.ReadUShort(); fightTeams = new Types.FightTeamLightInformations[limit]; for (int i = 0; i < limit; i++) { fightTeams[i] = new Types.FightTeamLightInformations(); fightTeams[i].Deserialize(reader); } limit = reader.ReadUShort(); fightTeamsOptions = new Types.FightOptionsInformations[limit]; for (int i = 0; i < limit; i++) { fightTeamsOptions[i] = new Types.FightOptionsInformations(); fightTeamsOptions[i].Deserialize(reader); } }
public override void Deserialize(BigEndianReader reader) { onlySuccess = reader.ReadBoolean(); goldSum = reader.ReadVarInt(); if (goldSum < 0) throw new Exception("Forbidden value on goldSum = " + goldSum + ", it doesn't respect the following condition : goldSum < 0"); }
public override void Deserialize(BigEndianReader reader) { accountId = reader.ReadInt(); if (accountId < 0) throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0"); session = reader.ReadBoolean(); }
public override void Deserialize(BigEndianReader reader) { alignmentRank = reader.ReadSByte(); if (alignmentRank < 0) throw new Exception("Forbidden value on alignmentRank = " + alignmentRank + ", it doesn't respect the following condition : alignmentRank < 0"); verbose = reader.ReadBoolean(); }
public override void Deserialize(BigEndianReader reader) { changeOrUse = reader.ReadBoolean(); codeSize = reader.ReadSByte(); if (codeSize < 0) throw new Exception("Forbidden value on codeSize = " + codeSize + ", it doesn't respect the following condition : codeSize < 0"); }
public override void Deserialize(BigEndianReader reader) { dungeonId = reader.ReadVarShort(); if (dungeonId < 0) throw new Exception("Forbidden value on dungeonId = " + dungeonId + ", it doesn't respect the following condition : dungeonId < 0"); available = reader.ReadBoolean(); }
public override void Deserialize(BigEndianReader reader) { id = reader.ReadVarInt(); if (id < 0) throw new Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : id < 0"); ready = reader.ReadBoolean(); }
public override void Deserialize(BigEndianReader reader) { subAreaId = reader.ReadVarShort(); if (subAreaId < 0) throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0"); join = reader.ReadBoolean(); }
public override void Deserialize(BigEndianReader reader) { onlySuccess = reader.ReadBoolean(); objectUID = reader.ReadVarInt(); if (objectUID < 0) throw new Exception("Forbidden value on objectUID = " + objectUID + ", it doesn't respect the following condition : objectUID < 0"); }
public override void Deserialize(BigEndianReader reader) { characterId = reader.ReadVarInt(); if (characterId < 0) throw new Exception("Forbidden value on characterId = " + characterId + ", it doesn't respect the following condition : characterId < 0"); isReady = reader.ReadBoolean(); }
public override void Deserialize(BigEndianReader reader) { channel = reader.ReadSByte(); if (channel < 0) throw new Exception("Forbidden value on channel = " + channel + ", it doesn't respect the following condition : channel < 0"); enable = reader.ReadBoolean(); }
public override void Deserialize(BigEndianReader reader) { base.Deserialize(reader); success = reader.ReadBoolean(); followedId = reader.ReadVarInt(); if (followedId < 0) throw new Exception("Forbidden value on followedId = " + followedId + ", it doesn't respect the following condition : followedId < 0"); }
public override void Deserialize(BigEndianReader reader) { fightId = reader.ReadInt(); playerId = reader.ReadVarInt(); if (playerId < 0) throw new Exception("Forbidden value on playerId = " + playerId + ", it doesn't respect the following condition : playerId < 0"); accepted = reader.ReadBoolean(); }
public override void Deserialize(BigEndianReader reader) { paddockId = reader.ReadInt(); bought = reader.ReadBoolean(); realPrice = reader.ReadVarInt(); if (realPrice < 0) throw new Exception("Forbidden value on realPrice = " + realPrice + ", it doesn't respect the following condition : realPrice < 0"); }
public override void Deserialize(BigEndianReader reader) { deadOrAlive = reader.ReadBoolean(); basicInfos = new Types.TaxCollectorBasicInformations(); basicInfos.Deserialize(reader); guild = new Types.BasicGuildInformations(); guild.Deserialize(reader); }
public override void Deserialize(BigEndianReader reader) { base.Deserialize(reader); price = reader.ReadVarInt(); if (price < 0) throw new Exception("Forbidden value on price = " + price + ", it doesn't respect the following condition : price < 0"); locked = reader.ReadBoolean(); }
public override void Deserialize(BigEndianReader 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"); enabled = reader.ReadBoolean(); }
public override void Deserialize(BigEndianReader reader) { useAdditionnal = reader.ReadBoolean(); statId = reader.ReadSByte(); if (statId < 0) throw new Exception("Forbidden value on statId = " + statId + ", it doesn't respect the following condition : statId < 0"); boostPoint = reader.ReadVarShort(); if (boostPoint < 0) throw new Exception("Forbidden value on boostPoint = " + boostPoint + ", it doesn't respect the following condition : boostPoint < 0"); }
public override void Deserialize(BigEndianReader reader) { targetId = reader.ReadVarInt(); if (targetId < 0) throw new Exception("Forbidden value on targetId = " + targetId + ", it doesn't respect the following condition : targetId < 0"); targetCellId = reader.ReadShort(); if (targetCellId < -1 || targetCellId > 559) throw new Exception("Forbidden value on targetCellId = " + targetCellId + ", it doesn't respect the following condition : targetCellId < -1 || targetCellId > 559"); friendly = reader.ReadBoolean(); }
public override void Deserialize(BigEndianReader reader) { registered = reader.ReadBoolean(); step = reader.ReadSByte(); if (step < 0) throw new Exception("Forbidden value on step = " + step + ", it doesn't respect the following condition : step < 0"); battleMode = reader.ReadInt(); if (battleMode < 0) throw new Exception("Forbidden value on battleMode = " + battleMode + ", it doesn't respect the following condition : battleMode < 0"); }
public override void Deserialize(BigEndianReader reader) { presetId = reader.ReadSByte(); if (presetId < 0) throw new Exception("Forbidden value on presetId = " + presetId + ", it doesn't respect the following condition : presetId < 0"); symbolId = reader.ReadSByte(); if (symbolId < 0) throw new Exception("Forbidden value on symbolId = " + symbolId + ", it doesn't respect the following condition : symbolId < 0"); saveEquipment = reader.ReadBoolean(); }
public override void Deserialize(BigEndianReader reader) { hireOrFire = reader.ReadBoolean(); basicInfos = new Types.TaxCollectorBasicInformations(); basicInfos.Deserialize(reader); playerId = reader.ReadVarInt(); if (playerId < 0) throw new Exception("Forbidden value on playerId = " + playerId + ", it doesn't respect the following condition : playerId < 0"); playerName = reader.ReadUTF(); }