public override void Deserialize(ICustomDataInput reader) { questType = reader.ReadSByte(); if (questType < 0) throw new Exception("Forbidden value on questType = " + questType + ", it doesn't respect the following condition : questType < 0"); startMapId = reader.ReadInt(); var limit = reader.ReadUShort(); knownStepsList = new Types.TreasureHuntStep[limit]; for (int i = 0; i < limit; i++) { (knownStepsList as Types.TreasureHuntStep[])[i] = Types.ProtocolTypeManager.GetInstance<Types.TreasureHuntStep>(reader.ReadShort()); (knownStepsList as Types.TreasureHuntStep[])[i].Deserialize(reader); } totalStepCount = reader.ReadSByte(); if (totalStepCount < 0) throw new Exception("Forbidden value on totalStepCount = " + totalStepCount + ", it doesn't respect the following condition : totalStepCount < 0"); checkPointCurrent = reader.ReadVarUhInt(); if (checkPointCurrent < 0) throw new Exception("Forbidden value on checkPointCurrent = " + checkPointCurrent + ", it doesn't respect the following condition : checkPointCurrent < 0"); checkPointTotal = reader.ReadVarUhInt(); if (checkPointTotal < 0) throw new Exception("Forbidden value on checkPointTotal = " + checkPointTotal + ", it doesn't respect the following condition : checkPointTotal < 0"); availableRetryCount = reader.ReadInt(); limit = reader.ReadUShort(); flags = new Types.TreasureHuntFlag[limit]; for (int i = 0; i < limit; i++) { (flags as Types.TreasureHuntFlag[])[i] = new Types.TreasureHuntFlag(); (flags as Types.TreasureHuntFlag[])[i].Deserialize(reader); } }
public virtual void Deserialize(ICustomDataInput reader) { modelId = reader.ReadVarUhInt(); 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.ReadVarUhShort(); 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 as int[])[i] = reader.ReadInt(); } isLocked = reader.ReadBoolean(); price = reader.ReadVarUhInt(); if (price < 0) throw new Exception("Forbidden value on price = " + price + ", it doesn't respect the following condition : price < 0"); }
public virtual void Deserialize(ICustomDataInput reader) { markAuthorId = reader.ReadInt(); markTeamId = reader.ReadSByte(); if (markTeamId < 0) throw new Exception("Forbidden value on markTeamId = " + markTeamId + ", it doesn't respect the following condition : markTeamId < 0"); markSpellId = reader.ReadInt(); if (markSpellId < 0) throw new Exception("Forbidden value on markSpellId = " + markSpellId + ", it doesn't respect the following condition : markSpellId < 0"); markSpellLevel = reader.ReadSByte(); if ((markSpellLevel < 1) || (markSpellLevel > 6)) throw new Exception("Forbidden value on markSpellLevel = " + markSpellLevel + ", it doesn't respect the following condition : (markSpellLevel < 1) || (markSpellLevel > 6)"); markId = reader.ReadShort(); markType = reader.ReadSByte(); markimpactCell = reader.ReadShort(); if ((markimpactCell < -1) || (markimpactCell > 559)) throw new Exception("Forbidden value on markimpactCell = " + markimpactCell + ", it doesn't respect the following condition : (markimpactCell < -1) || (markimpactCell > 559)"); var limit = reader.ReadUShort(); cells = new Types.GameActionMarkedCell[limit]; for (int i = 0; i < limit; i++) { (cells as Types.GameActionMarkedCell[])[i] = new Types.GameActionMarkedCell(); (cells as Types.GameActionMarkedCell[])[i].Deserialize(reader); } active = reader.ReadBoolean(); }
public override void Deserialize(ICustomDataInput reader) { presetId = reader.ReadSByte(); if (presetId < 0) throw new Exception("Forbidden value on presetId = " + presetId + ", it doesn't respect the following condition : presetId < 0"); code = reader.ReadSByte(); if (code < 0) throw new Exception("Forbidden value on code = " + code + ", it doesn't respect the following condition : code < 0"); }
public override void Deserialize(ICustomDataInput reader) { barType = reader.ReadSByte(); if (barType < 0) throw new Exception("Forbidden value on barType = " + barType + ", it doesn't respect the following condition : barType < 0"); slot = reader.ReadSByte(); if ((slot < 0) || (slot > 99)) throw new Exception("Forbidden value on slot = " + slot + ", it doesn't respect the following condition : (slot < 0) || (slot > 99)"); }
public override void Deserialize(ICustomDataInput reader) { questType = reader.ReadSByte(); if (questType < 0) throw new Exception("Forbidden value on questType = " + questType + ", it doesn't respect the following condition : questType < 0"); result = reader.ReadSByte(); if (result < 0) throw new Exception("Forbidden value on result = " + result + ", it doesn't respect the following condition : result < 0"); }
public override void Deserialize(ICustomDataInput reader) { lang = reader.ReadUTF(); community = reader.ReadSByte(); if (community < 0) throw new Exception("Forbidden value on community = " + community + ", it doesn't respect the following condition : community < 0"); gameType = reader.ReadSByte(); if (gameType < 0) throw new Exception("Forbidden value on gameType = " + gameType + ", it doesn't respect the following condition : gameType < 0"); }
public override void Deserialize(ICustomDataInput reader) { id = reader.ReadSByte(); if (id < 0) throw new Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : id < 0"); teamId = reader.ReadSByte(); if (teamId < 0) throw new Exception("Forbidden value on teamId = " + teamId + ", it doesn't respect the following condition : teamId < 0"); nbTurnBeforeNextWave = reader.ReadShort(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); possibleChangeMask = reader.ReadSByte(); if (possibleChangeMask < 0) throw new Exception("Forbidden value on possibleChangeMask = " + possibleChangeMask + ", it doesn't respect the following condition : possibleChangeMask < 0"); mandatoryChangeMask = reader.ReadSByte(); if (mandatoryChangeMask < 0) throw new Exception("Forbidden value on mandatoryChangeMask = " + mandatoryChangeMask + ", it doesn't respect the following condition : mandatoryChangeMask < 0"); }
public virtual void Deserialize(ICustomDataInput reader) { bindingPointCategory = reader.ReadSByte(); if (bindingPointCategory < 0) throw new Exception("Forbidden value on bindingPointCategory = " + bindingPointCategory + ", it doesn't respect the following condition : bindingPointCategory < 0"); bindingPointIndex = reader.ReadSByte(); if (bindingPointIndex < 0) throw new Exception("Forbidden value on bindingPointIndex = " + bindingPointIndex + ", it doesn't respect the following condition : bindingPointIndex < 0"); subEntityLook = new Types.EntityLook(); subEntityLook.Deserialize(reader); }
public override void Deserialize(ICustomDataInput reader) { serverId = reader.ReadVarUhShort(); if (serverId < 0) throw new Exception("Forbidden value on serverId = " + serverId + ", it doesn't respect the following condition : serverId < 0"); error = reader.ReadSByte(); if (error < 0) throw new Exception("Forbidden value on error = " + error + ", it doesn't respect the following condition : error < 0"); serverStatus = reader.ReadSByte(); if (serverStatus < 0) throw new Exception("Forbidden value on serverStatus = " + serverStatus + ", it doesn't respect the following condition : serverStatus < 0"); }
public override void Deserialize(ICustomDataInput reader) { days = reader.ReadVarUhShort(); if (days < 0) throw new Exception("Forbidden value on days = " + days + ", it doesn't respect the following condition : days < 0"); hours = reader.ReadSByte(); if (hours < 0) throw new Exception("Forbidden value on hours = " + hours + ", it doesn't respect the following condition : hours < 0"); minutes = reader.ReadSByte(); if (minutes < 0) throw new Exception("Forbidden value on minutes = " + minutes + ", it doesn't respect the following condition : minutes < 0"); }
public override void Deserialize(ICustomDataInput reader) { day = reader.ReadSByte(); if (day < 0) throw new Exception("Forbidden value on day = " + day + ", it doesn't respect the following condition : day < 0"); month = reader.ReadSByte(); if (month < 0) throw new Exception("Forbidden value on month = " + month + ", it doesn't respect the following condition : month < 0"); year = reader.ReadShort(); if (year < 0) throw new Exception("Forbidden value on year = " + year + ", it doesn't respect the following condition : year < 0"); }
public override void Deserialize(ICustomDataInput reader) { fightId = reader.ReadShort(); if (fightId < 0) throw new Exception("Forbidden value on fightId = " + fightId + ", it doesn't respect the following condition : fightId < 0"); teamId = reader.ReadSByte(); if (teamId < 0) throw new Exception("Forbidden value on teamId = " + teamId + ", it doesn't respect the following condition : teamId < 0"); option = reader.ReadSByte(); if (option < 0) throw new Exception("Forbidden value on option = " + option + ", it doesn't respect the following condition : option < 0"); state = reader.ReadBoolean(); }
public virtual void Deserialize(ICustomDataInput reader) { alignmentSide = reader.ReadSByte(); alignmentValue = reader.ReadSByte(); if (alignmentValue < 0) throw new Exception("Forbidden value on alignmentValue = " + alignmentValue + ", it doesn't respect the following condition : alignmentValue < 0"); alignmentGrade = reader.ReadSByte(); if (alignmentGrade < 0) throw new Exception("Forbidden value on alignmentGrade = " + alignmentGrade + ", it doesn't respect the following condition : alignmentGrade < 0"); characterPower = reader.ReadVarUhInt(); if (characterPower < 0) throw new Exception("Forbidden value on characterPower = " + characterPower + ", it doesn't respect the following condition : characterPower < 0"); }
public virtual void Deserialize(ICustomDataInput reader) { teamId = reader.ReadSByte(); if (teamId < 0) throw new Exception("Forbidden value on teamId = " + teamId + ", it doesn't respect the following condition : teamId < 0"); leaderId = reader.ReadInt(); teamSide = reader.ReadSByte(); teamTypeId = reader.ReadSByte(); if (teamTypeId < 0) throw new Exception("Forbidden value on teamTypeId = " + teamTypeId + ", it doesn't respect the following condition : teamTypeId < 0"); nbWaves = reader.ReadSByte(); if (nbWaves < 0) throw new Exception("Forbidden value on nbWaves = " + nbWaves + ", it doesn't respect the following condition : nbWaves < 0"); }
public virtual void Deserialize(ICustomDataInput reader) { teamId = reader.ReadSByte(); if (teamId < 0) throw new Exception("Forbidden value on teamId = " + teamId + ", it doesn't respect the following condition : teamId < 0"); partyName = reader.ReadUTF(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); elementEventId = reader.ReadSByte(); if (elementEventId < 0) throw new Exception("Forbidden value on elementEventId = " + elementEventId + ", it doesn't respect the following condition : elementEventId < 0"); }
public override void Deserialize(ICustomDataInput 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(ICustomDataInput reader) { base.Deserialize(reader); maxPods = reader.ReadVarUhShort(); if (maxPods < 0) throw new Exception("Forbidden value on maxPods = " + maxPods + ", it doesn't respect the following condition : maxPods < 0"); prospecting = reader.ReadVarUhShort(); if (prospecting < 0) throw new Exception("Forbidden value on prospecting = " + prospecting + ", it doesn't respect the following condition : prospecting < 0"); wisdom = reader.ReadVarUhShort(); if (wisdom < 0) throw new Exception("Forbidden value on wisdom = " + wisdom + ", it doesn't respect the following condition : wisdom < 0"); taxCollectorsCount = reader.ReadSByte(); if (taxCollectorsCount < 0) throw new Exception("Forbidden value on taxCollectorsCount = " + taxCollectorsCount + ", it doesn't respect the following condition : taxCollectorsCount < 0"); taxCollectorAttack = reader.ReadInt(); kamas = reader.ReadVarUhInt(); if (kamas < 0) throw new Exception("Forbidden value on kamas = " + kamas + ", it doesn't respect the following condition : kamas < 0"); experience = reader.ReadVarUhLong(); if ((experience < 0) || (experience > 9.007199254740992E15)) throw new Exception("Forbidden value on experience = " + experience + ", it doesn't respect the following condition : (experience < 0) || (experience > 9.007199254740992E15)"); pods = reader.ReadVarUhInt(); if (pods < 0) throw new Exception("Forbidden value on pods = " + pods + ", it doesn't respect the following condition : pods < 0"); itemsValue = reader.ReadVarUhInt(); if (itemsValue < 0) throw new Exception("Forbidden value on itemsValue = " + itemsValue + ", it doesn't respect the following condition : itemsValue < 0"); }
public override void Deserialize(ICustomDataInput reader) { byte flag1 = reader.ReadByte(); self = BooleanByteWrapper.GetFlag(flag1, 0); verbose = BooleanByteWrapper.GetFlag(flag1, 1); position = reader.ReadSByte(); accountNickname = reader.ReadUTF(); accountId = reader.ReadInt(); if (accountId < 0) throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0"); playerName = reader.ReadUTF(); playerId = reader.ReadVarUhInt(); if (playerId < 0) throw new Exception("Forbidden value on playerId = " + playerId + ", it doesn't respect the following condition : playerId < 0"); areaId = reader.ReadShort(); var limit = reader.ReadUShort(); socialGroups = new Types.AbstractSocialGroupInfos[limit]; for (int i = 0; i < limit; i++) { (socialGroups as Types.AbstractSocialGroupInfos[])[i] = Types.ProtocolTypeManager.GetInstance<Types.AbstractSocialGroupInfos>(reader.ReadShort()); (socialGroups as Types.AbstractSocialGroupInfos[])[i].Deserialize(reader); } playerState = reader.ReadSByte(); if (playerState < 0) throw new Exception("Forbidden value on playerState = " + playerState + ", it doesn't respect the following condition : playerState < 0"); }
public virtual void Deserialize(ICustomDataInput 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 as Types.FightTeamLightInformations[])[i] = new Types.FightTeamLightInformations(); (fightTeams as Types.FightTeamLightInformations[])[i].Deserialize(reader); } limit = reader.ReadUShort(); fightTeamsOptions = new Types.FightOptionsInformations[limit]; for (int i = 0; i < limit; i++) { (fightTeamsOptions as Types.FightOptionsInformations[])[i] = new Types.FightOptionsInformations(); (fightTeamsOptions as Types.FightOptionsInformations[])[i].Deserialize(reader); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); reason = reader.ReadSByte(); if (reason < 0) throw new Exception("Forbidden value on reason = " + reason + ", it doesn't respect the following condition : reason < 0"); }
public override void Deserialize(ICustomDataInput reader) { uid = reader.ReadUTF(); failure = reader.ReadSByte(); if (failure < 0) throw new Exception("Forbidden value on failure = " + failure + ", it doesn't respect the following condition : failure < 0"); }
public virtual void Deserialize(ICustomDataInput reader) { id = reader.ReadUTF(); state = reader.ReadSByte(); if (state < 0) throw new Exception("Forbidden value on state = " + state + ", it doesn't respect the following condition : state < 0"); }
public override void Deserialize(ICustomDataInput reader) { type = reader.ReadSByte(); if (type < 0) throw new Exception("Forbidden value on type = " + type + ", it doesn't respect the following condition : type < 0"); content = reader.ReadUTF(); }
public virtual void Deserialize(ICustomDataInput reader) { spellId = reader.ReadInt(); cooldown = reader.ReadSByte(); if (cooldown < 0) throw new Exception("Forbidden value on cooldown = " + cooldown + ", it doesn't respect the following condition : cooldown < 0"); }
public override void Deserialize(ICustomDataInput reader) { result = reader.ReadSByte(); nbCharacBoost = reader.ReadVarUhShort(); if (nbCharacBoost < 0) throw new Exception("Forbidden value on nbCharacBoost = " + nbCharacBoost + ", it doesn't respect the following condition : nbCharacBoost < 0"); }
public virtual void Deserialize(ICustomDataInput reader) { timeLeftBeforeFight = reader.ReadInt(); waitTimeForPlacement = reader.ReadInt(); nbPositionForDefensors = reader.ReadSByte(); if (nbPositionForDefensors < 0) throw new Exception("Forbidden value on nbPositionForDefensors = " + nbPositionForDefensors + ", it doesn't respect the following condition : nbPositionForDefensors < 0"); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); monsterId = reader.ReadInt(); grade = reader.ReadSByte(); if (grade < 0) throw new Exception("Forbidden value on grade = " + grade + ", it doesn't respect the following condition : grade < 0"); }
public override void Deserialize(ICustomDataInput reader) { this.fightType = reader.ReadSByte(); if (this.fightType < 0) { throw new Exception("Forbidden value on fightType = " + this.fightType + ", it doesn't respect the following condition : fightType < 0"); } this.attackerId = reader.ReadDouble(); if (this.attackerId < -9007199254740990 || this.attackerId > 9007199254740990) { throw new Exception("Forbidden value on attackerId = " + this.attackerId + ", it doesn't respect the following condition : attackerId < -9007199254740990 || attackerId > 9007199254740990"); } this.defenderId = reader.ReadDouble(); if (this.defenderId < -9007199254740990 || this.defenderId > 9007199254740990) { throw new Exception("Forbidden value on defenderId = " + this.defenderId + ", it doesn't respect the following condition : defenderId < -9007199254740990 || defenderId > 9007199254740990"); } }
public override void Deserialize(ICustomDataInput reader) { var limit = reader.ReadUShort(); positionsForChallengers = new ushort[limit]; for (int i = 0; i < limit; i++) { (positionsForChallengers as ushort[])[i] = reader.ReadVarUhShort(); } limit = reader.ReadUShort(); positionsForDefenders = new ushort[limit]; for (int i = 0; i < limit; i++) { (positionsForDefenders as ushort[])[i] = reader.ReadVarUhShort(); } teamNumber = reader.ReadSByte(); if (teamNumber < 0) { throw new Exception("Forbidden value on teamNumber = " + teamNumber + ", it doesn't respect the following condition : teamNumber < 0"); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); leaderName = reader.ReadUTF(); nbConnectedMembers = reader.ReadVarUhShort(); if (nbConnectedMembers < 0) { throw new Exception("Forbidden value on nbConnectedMembers = " + nbConnectedMembers + ", it doesn't respect the following condition : nbConnectedMembers < 0"); } nbTaxCollectors = reader.ReadSByte(); if (nbTaxCollectors < 0) { throw new Exception("Forbidden value on nbTaxCollectors = " + nbTaxCollectors + ", it doesn't respect the following condition : nbTaxCollectors < 0"); } lastActivity = reader.ReadInt(); if (lastActivity < 0) { throw new Exception("Forbidden value on lastActivity = " + lastActivity + ", it doesn't respect the following condition : lastActivity < 0"); } enabled = reader.ReadBoolean(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); spellId = reader.ReadVarUhShort(); if (spellId < 0) { throw new Exception("Forbidden value on spellId = " + spellId + ", it doesn't respect the following condition : spellId < 0"); } spellLevel = reader.ReadSByte(); if (spellLevel < 1 || spellLevel > 6) { throw new Exception("Forbidden value on spellLevel = " + spellLevel + ", it doesn't respect the following condition : spellLevel < 1 || spellLevel > 6"); } var limit = reader.ReadShort(); portalsIds = new short[limit]; for (int i = 0; i < limit; i++) { (portalsIds as short[])[i] = reader.ReadShort(); } }
public override void Deserialize(ICustomDataInput reader) { byte flag1 = reader.ReadByte(); hasRights = BooleanByteWrapper.GetFlag(flag1, 0); wasAlreadyConnected = BooleanByteWrapper.GetFlag(flag1, 1); login = reader.ReadUTF(); nickname = reader.ReadUTF(); accountId = reader.ReadInt(); if (accountId < 0) { throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0"); } communityId = reader.ReadSByte(); if (communityId < 0) { throw new Exception("Forbidden value on communityId = " + communityId + ", it doesn't respect the following condition : communityId < 0"); } secretQuestion = reader.ReadUTF(); accountCreation = reader.ReadDouble(); if (accountCreation < 0 || accountCreation > 9007199254740990) { throw new Exception("Forbidden value on accountCreation = " + accountCreation + ", it doesn't respect the following condition : accountCreation < 0 || accountCreation > 9007199254740990"); } subscriptionElapsedDuration = reader.ReadDouble(); if (subscriptionElapsedDuration < 0 || subscriptionElapsedDuration > 9007199254740990) { throw new Exception("Forbidden value on subscriptionElapsedDuration = " + subscriptionElapsedDuration + ", it doesn't respect the following condition : subscriptionElapsedDuration < 0 || subscriptionElapsedDuration > 9007199254740990"); } subscriptionEndDate = reader.ReadDouble(); if (subscriptionEndDate < 0 || subscriptionEndDate > 9007199254740990) { throw new Exception("Forbidden value on subscriptionEndDate = " + subscriptionEndDate + ", it doesn't respect the following condition : subscriptionEndDate < 0 || subscriptionEndDate > 9007199254740990"); } havenbagAvailableRoom = reader.ReadByte(); if (havenbagAvailableRoom < 0 || havenbagAvailableRoom > 255) { throw new Exception("Forbidden value on havenbagAvailableRoom = " + havenbagAvailableRoom + ", it doesn't respect the following condition : havenbagAvailableRoom < 0 || havenbagAvailableRoom > 255"); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); this.partyType = reader.ReadSByte(); if (this.partyType < 0) { throw new Exception("Forbidden value on partyType = " + this.partyType + ", it doesn't respect the following condition : partyType < 0"); } this.partyName = reader.ReadUTF(); this.fromId = reader.ReadVarUhLong(); if (this.fromId < 0 || this.fromId > 9007199254740990) { throw new Exception("Forbidden value on fromId = " + this.fromId + ", it doesn't respect the following condition : fromId < 0 || fromId > 9007199254740990"); } this.fromName = reader.ReadUTF(); this.leaderId = reader.ReadVarUhLong(); if (this.leaderId < 0 || this.leaderId > 9007199254740990) { throw new Exception("Forbidden value on leaderId = " + this.leaderId + ", it doesn't respect the following condition : leaderId < 0 || leaderId > 9007199254740990"); } var limit = reader.ReadUShort(); this.members = new PartyInvitationMemberInformations[limit]; for (int i = 0; i < limit; i++) { this.members[i] = new PartyInvitationMemberInformations(); this.members[i].Deserialize(reader); } limit = reader.ReadUShort(); this.guests = new PartyGuestInformations[limit]; for (int i = 0; i < limit; i++) { this.guests[i] = new PartyGuestInformations(); this.guests[i].Deserialize(reader); } }
public override void Deserialize(ICustomDataInput reader) { serverId = reader.ReadVarUhShort(); if (serverId < 0) { throw new Exception("Forbidden value on serverId = " + serverId + ", it doesn't respect the following condition : serverId < 0"); } address = reader.ReadUTF(); port = reader.ReadUShort(); if (port < 0 || port > 65535) { throw new Exception("Forbidden value on port = " + port + ", it doesn't respect the following condition : port < 0 || port > 65535"); } canCreateNewCharacter = reader.ReadBoolean(); var limit = reader.ReadUShort(); ticket = new sbyte[limit]; for (int i = 0; i < limit; i++) { ticket[i] = reader.ReadSByte(); } }
public override void Deserialize(ICustomDataInput reader) { var limit = reader.ReadUShort(); cellIds = new ushort[limit]; for (int i = 0; i < limit; i++) { cellIds[i] = reader.ReadVarUhShort(); } limit = reader.ReadUShort(); funitureIds = new int[limit]; for (int i = 0; i < limit; i++) { funitureIds[i] = reader.ReadInt(); } limit = reader.ReadUShort(); orientations = new sbyte[limit]; for (int i = 0; i < limit; i++) { orientations[i] = reader.ReadSByte(); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); this.delayTypeId = reader.ReadSByte(); if (this.delayTypeId < 0) { throw new Exception("Forbidden value on delayTypeId = " + this.delayTypeId + ", it doesn't respect the following condition : delayTypeId < 0"); } this.delayEndTime = reader.ReadDouble(); if (this.delayEndTime < 0 || this.delayEndTime > 9007199254740990) { throw new Exception("Forbidden value on delayEndTime = " + this.delayEndTime + ", it doesn't respect the following condition : delayEndTime < 0 || delayEndTime > 9007199254740990"); } this.objectGID = reader.ReadVarUhShort(); if (this.objectGID < 0) { throw new Exception("Forbidden value on objectGID = " + this.objectGID + ", it doesn't respect the following condition : objectGID < 0"); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); this.deathState = reader.ReadSByte(); if (this.deathState < 0) { throw new Exception("Forbidden value on deathState = " + this.deathState + ", it doesn't respect the following condition : deathState < 0"); } this.deathCount = reader.ReadVarUhShort(); if (this.deathCount < 0) { throw new Exception("Forbidden value on deathCount = " + this.deathCount + ", it doesn't respect the following condition : deathCount < 0"); } this.deathMaxLevel = reader.ReadByte(); if (this.deathMaxLevel < 1 || this.deathMaxLevel > 200) { throw new Exception("Forbidden value on deathMaxLevel = " + this.deathMaxLevel + ", it doesn't respect the following condition : deathMaxLevel < 1 || deathMaxLevel > 200"); } }
public override void Deserialize(ICustomDataInput reader) { this.mountUid = reader.ReadVarUhInt(); if (this.mountUid < 0) { throw new Exception("Forbidden value on mountUid = " + this.mountUid + ", it doesn't respect the following condition : mountUid < 0"); } this.mountLocation = reader.ReadSByte(); this.mountFoodUid = reader.ReadVarUhInt(); if (this.mountFoodUid < 0) { throw new Exception("Forbidden value on mountFoodUid = " + this.mountFoodUid + ", it doesn't respect the following condition : mountFoodUid < 0"); } this.quantity = reader.ReadVarUhInt(); if (this.quantity < 0) { throw new Exception("Forbidden value on quantity = " + this.quantity + ", it doesn't respect the following condition : quantity < 0"); } }
public override void Deserialize(ICustomDataInput reader) { name = reader.ReadUTF(); 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(); var limit = reader.ReadUShort(); colors = new int[limit]; for (int i = 0; i < limit; i++) { colors[i] = reader.ReadInt(); } cosmeticId = reader.ReadVarUhShort(); if (cosmeticId < 0) { throw new Exception("Forbidden value on cosmeticId = " + cosmeticId + ", it doesn't respect the following condition : cosmeticId < 0"); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); this.companionGenericId = reader.ReadSByte(); if (this.companionGenericId < 0) { throw new Exception("Forbidden value on companionGenericId = " + this.companionGenericId + ", it doesn't respect the following condition : companionGenericId < 0"); } this.level = reader.ReadByte(); if (this.level < 0 || this.level > 255) { throw new Exception("Forbidden value on level = " + this.level + ", it doesn't respect the following condition : level < 0 || level > 255"); } this.masterId = reader.ReadDouble(); if (this.masterId < -9007199254740990 || this.masterId > 9007199254740990) { throw new Exception("Forbidden value on masterId = " + this.masterId + ", it doesn't respect the following condition : masterId < -9007199254740990 || masterId > 9007199254740990"); } }
public override void Deserialize(ICustomDataInput reader) { this.msgType = reader.ReadSByte(); if (this.msgType < 0) { throw new Exception("Forbidden value on msgType = " + this.msgType + ", it doesn't respect the following condition : msgType < 0"); } this.msgId = reader.ReadVarUhShort(); if (this.msgId < 0) { throw new Exception("Forbidden value on msgId = " + this.msgId + ", it doesn't respect the following condition : msgId < 0"); } var limit = reader.ReadUShort(); this.parameters = new string[limit]; for (int i = 0; i < limit; i++) { this.parameters[i] = reader.ReadUTF(); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); byte flag1 = reader.ReadByte(); silentCast = BooleanByteWrapper.GetFlag(flag1, 0); verboseCast = BooleanByteWrapper.GetFlag(flag1, 1); targetId = reader.ReadDouble(); if (targetId < -9007199254740990 || targetId > 9007199254740990) { throw new Exception("Forbidden value on targetId = " + targetId + ", it doesn't respect the following condition : targetId < -9007199254740990 || targetId > 9007199254740990"); } destinationCellId = reader.ReadShort(); if (destinationCellId < -1 || destinationCellId > 559) { throw new Exception("Forbidden value on destinationCellId = " + destinationCellId + ", it doesn't respect the following condition : destinationCellId < -1 || destinationCellId > 559"); } critical = reader.ReadSByte(); if (critical < 0) { throw new Exception("Forbidden value on critical = " + critical + ", it doesn't respect the following condition : critical < 0"); } }
public virtual void Deserialize(ICustomDataInput reader) { type = reader.ReadSByte(); if (type < 0) { throw new Exception("Forbidden value on type = " + type + ", it doesn't respect the following condition : type < 0"); } monsterId = reader.ReadVarUhShort(); if (monsterId < 0) { throw new Exception("Forbidden value on monsterId = " + monsterId + ", it doesn't respect the following condition : monsterId < 0"); } kamas = reader.ReadUInt(); if (kamas < 0 || kamas > 4294967295) { throw new Exception("Forbidden value on kamas = " + kamas + ", it doesn't respect the following condition : kamas < 0 || kamas > 4294967295"); } dareId = reader.ReadDouble(); if (dareId < 0 || dareId > 9007199254740990) { throw new Exception("Forbidden value on dareId = " + dareId + ", it doesn't respect the following condition : dareId < 0 || dareId > 9007199254740990"); } }
public override void Deserialize(ICustomDataInput reader) { this.delayedCharacterId = reader.ReadDouble(); if (this.delayedCharacterId < -9007199254740990 || this.delayedCharacterId > 9007199254740990) { throw new Exception("Forbidden value on delayedCharacterId = " + this.delayedCharacterId + ", it doesn't respect the following condition : delayedCharacterId < -9007199254740990 || delayedCharacterId > 9007199254740990"); } this.delayTypeId = reader.ReadSByte(); if (this.delayTypeId < 0) { throw new Exception("Forbidden value on delayTypeId = " + this.delayTypeId + ", it doesn't respect the following condition : delayTypeId < 0"); } this.delayEndTime = reader.ReadDouble(); if (this.delayEndTime < 0 || this.delayEndTime > 9007199254740990) { throw new Exception("Forbidden value on delayEndTime = " + this.delayEndTime + ", it doesn't respect the following condition : delayEndTime < 0 || delayEndTime > 9007199254740990"); } }
public override void Deserialize(ICustomDataInput reader) { memberId = reader.ReadVarUhInt(); if (memberId < 0) { throw new Exception("Forbidden value on memberId = " + memberId + ", it doesn't respect the following condition : memberId < 0"); } rank = reader.ReadVarUhShort(); if (rank < 0) { throw new Exception("Forbidden value on rank = " + rank + ", it doesn't respect the following condition : rank < 0"); } 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.ReadVarUhInt(); if (rights < 0) { throw new Exception("Forbidden value on rights = " + rights + ", it doesn't respect the following condition : rights < 0"); } }
public override void Deserialize(ICustomDataInput reader) { casterId = reader.ReadVarUhLong(); if (casterId < 0 || casterId > 9007199254740990) { throw new Exception("Forbidden value on casterId = " + casterId + ", it doesn't respect the following condition : casterId < 0 || casterId > 9007199254740990"); } targetCellId = reader.ReadVarUhShort(); if (targetCellId < 0 || targetCellId > 559) { throw new Exception("Forbidden value on targetCellId = " + targetCellId + ", it doesn't respect the following condition : targetCellId < 0 || targetCellId > 559"); } spellId = reader.ReadVarUhShort(); if (spellId < 0) { throw new Exception("Forbidden value on spellId = " + spellId + ", it doesn't respect the following condition : spellId < 0"); } spellLevel = reader.ReadSByte(); if (spellLevel < 1 || spellLevel > 6) { throw new Exception("Forbidden value on spellLevel = " + spellLevel + ", it doesn't respect the following condition : spellLevel < 1 || spellLevel > 6"); } }
public override void Deserialize(ICustomDataInput reader) { byte flag1 = reader.ReadByte(); tutorialAvailable = BooleanByteWrapper.GetFlag(flag1, 0); canCreateNewCharacter = BooleanByteWrapper.GetFlag(flag1, 1); accountId = reader.ReadInt(); if (accountId < 0) { throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0"); } breedsVisible = reader.ReadUShort(); if (breedsVisible < 0 || breedsVisible > 65535) { throw new Exception("Forbidden value on breedsVisible = " + breedsVisible + ", it doesn't respect the following condition : breedsVisible < 0 || breedsVisible > 65535"); } breedsAvailable = reader.ReadUShort(); if (breedsAvailable < 0 || breedsAvailable > 65535) { throw new Exception("Forbidden value on breedsAvailable = " + breedsAvailable + ", it doesn't respect the following condition : breedsAvailable < 0 || breedsAvailable > 65535"); } status = reader.ReadSByte(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); honor = reader.ReadVarUhShort(); if ((honor < 0) || (honor > 20000)) { throw new Exception("Forbidden value on honor = " + honor + ", it doesn't respect the following condition : (honor < 0) || (honor > 20000)"); } honorGradeFloor = reader.ReadVarUhShort(); if ((honorGradeFloor < 0) || (honorGradeFloor > 20000)) { throw new Exception("Forbidden value on honorGradeFloor = " + honorGradeFloor + ", it doesn't respect the following condition : (honorGradeFloor < 0) || (honorGradeFloor > 20000)"); } honorNextGradeFloor = reader.ReadVarUhShort(); if ((honorNextGradeFloor < 0) || (honorNextGradeFloor > 20000)) { throw new Exception("Forbidden value on honorNextGradeFloor = " + honorNextGradeFloor + ", it doesn't respect the following condition : (honorNextGradeFloor < 0) || (honorNextGradeFloor > 20000)"); } aggressable = reader.ReadSByte(); if (aggressable < 0) { throw new Exception("Forbidden value on aggressable = " + aggressable + ", it doesn't respect the following condition : aggressable < 0"); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); partyType = reader.ReadSByte(); if (partyType < 0) { throw new Exception("Forbidden value on partyType = " + partyType + ", it doesn't respect the following condition : partyType < 0"); } partyName = reader.ReadUTF(); fromId = reader.ReadVarUhInt(); if (fromId < 0) { throw new Exception("Forbidden value on fromId = " + fromId + ", it doesn't respect the following condition : fromId < 0"); } fromName = reader.ReadUTF(); leaderId = reader.ReadVarUhInt(); if (leaderId < 0) { throw new Exception("Forbidden value on leaderId = " + leaderId + ", it doesn't respect the following condition : leaderId < 0"); } var limit = reader.ReadUShort(); members = new Types.PartyInvitationMemberInformations[limit]; for (int i = 0; i < limit; i++) { (members as Types.PartyInvitationMemberInformations[])[i] = new Types.PartyInvitationMemberInformations(); (members as Types.PartyInvitationMemberInformations[])[i].Deserialize(reader); } limit = reader.ReadUShort(); guests = new Types.PartyGuestInformations[limit]; for (int i = 0; i < limit; i++) { (guests as Types.PartyGuestInformations[])[i] = new Types.PartyGuestInformations(); (guests as Types.PartyGuestInformations[])[i].Deserialize(reader); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); reason = reader.ReadSByte(); if (reason < 0) { throw new Exception("Forbidden value on reason = " + reason + ", it doesn't respect the following condition : reason < 0"); } memberId = reader.ReadVarUhInt(); if (memberId < 0) { throw new Exception("Forbidden value on memberId = " + memberId + ", it doesn't respect the following condition : memberId < 0"); } memberAccountId = reader.ReadInt(); if (memberAccountId < 0) { throw new Exception("Forbidden value on memberAccountId = " + memberAccountId + ", it doesn't respect the following condition : memberAccountId < 0"); } memberName = reader.ReadUTF(); fightId = reader.ReadInt(); fightMap = new Types.MapCoordinatesExtended(); fightMap.Deserialize(reader); timeBeforeFightStart = reader.ReadVarShort(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); Breed = reader.ReadSByte(); Sex = reader.ReadBoolean(); }
public override void Deserialize(ICustomDataInput reader) { reason = reader.ReadSByte(); }
public override void Deserialize(ICustomDataInput reader) { smileyId = reader.ReadSByte(); }
public override void Deserialize(ICustomDataInput reader) { m_newLevel = reader.ReadSByte(); }
public override void Deserialize(ICustomDataInput reader) { exchangeType = reader.ReadSByte(); }
public override void Deserialize(ICustomDataInput reader) { uniqueId = reader.ReadInt(); state = reader.ReadSByte(); }
public override void Deserialize(ICustomDataInput reader) { m_emoteId = reader.ReadSByte(); m_emoteStartTime = reader.ReadDouble(); }