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 override void Deserialize(ICustomDataInput reader)
 {
     characterId = reader.ReadVarUhInt();
     if (characterId < 0)
         throw new Exception("Forbidden value on characterId = " + characterId + ", it doesn't respect the following condition : characterId < 0");
     isReady = reader.ReadBoolean();
 }
 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)
 {
     subAreaId = reader.ReadVarUhShort();
     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(ICustomDataInput reader)
 {
     enable = reader.ReadBoolean();
     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)
 {
     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);
     price = reader.ReadVarUhInt();
     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(ICustomDataInput reader)
 {
     deadOrAlive = reader.ReadBoolean();
     basicInfos = new Types.TaxCollectorBasicInformations();
     basicInfos.Deserialize(reader);
     guild = new Types.BasicGuildInformations();
     guild.Deserialize(reader);
 }
 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();
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     dungeonId = reader.ReadVarUhShort();
     if (dungeonId < 0)
         throw new Exception("Forbidden value on dungeonId = " + dungeonId + ", it doesn't respect the following condition : dungeonId < 0");
     buddyId = reader.ReadVarUhInt();
     if (buddyId < 0)
         throw new Exception("Forbidden value on buddyId = " + buddyId + ", it doesn't respect the following condition : buddyId < 0");
     accept = reader.ReadBoolean();
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     buyOrSell = reader.ReadBoolean();
     purchasableId = reader.ReadVarUhInt();
     if (purchasableId < 0)
         throw new Exception("Forbidden value on purchasableId = " + purchasableId + ", it doesn't respect the following condition : purchasableId < 0");
     price = reader.ReadVarUhInt();
     if (price < 0)
         throw new Exception("Forbidden value on price = " + price + ", it doesn't respect the following condition : price < 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");
     bought = reader.ReadBoolean();
     realPrice = reader.ReadVarUhInt();
     if (realPrice < 0)
         throw new Exception("Forbidden value on realPrice = " + realPrice + ", it doesn't respect the following condition : realPrice < 0");
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     targetId = reader.ReadInt();
     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");
     silentCast = reader.ReadBoolean();
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     playerId = reader.ReadVarUhInt();
     if (playerId < 0)
         throw new Exception("Forbidden value on playerId = " + playerId + ", it doesn't respect the following condition : playerId < 0");
     playerName = reader.ReadUTF();
     breed = reader.ReadSByte();
     if ((breed < (byte)Enums.PlayableBreedEnum.Feca) || (breed > (byte)Enums.PlayableBreedEnum.Eliotrope))
         throw new Exception("Forbidden value on breed = " + breed + ", it doesn't respect the following condition : (breed < (byte)Enums.PlayableBreedEnum.Feca) || (breed > (byte)Enums.PlayableBreedEnum.Eliotrope)");
     sex = reader.ReadBoolean();
 }
 public virtual void Deserialize(ICustomDataInput reader)
 {
     jobId = reader.ReadSByte();
     if (jobId < 0)
         throw new Exception("Forbidden value on jobId = " + jobId + ", it doesn't respect the following condition : jobId < 0");
     jobLevel = reader.ReadByte();
     if ((jobLevel < 1) || (jobLevel > 200))
         throw new Exception("Forbidden value on jobLevel = " + jobLevel + ", it doesn't respect the following condition : (jobLevel < 1) || (jobLevel > 200)");
     free = reader.ReadBoolean();
     minLevel = reader.ReadByte();
     if ((minLevel < 0) || (minLevel > 255))
         throw new Exception("Forbidden value on minLevel = " + minLevel + ", it doesn't respect the following condition : (minLevel < 0) || (minLevel > 255)");
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     id = reader.ReadVarUhShort();
     if (id < 0)
         throw new Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : id < 0");
     var limit = reader.ReadUShort();
     parameters = new string[limit];
     for (int i = 0; i < limit; i++)
     {
          (parameters as string[])[i] = reader.ReadUTF();
     }
     forceOpen = reader.ReadBoolean();
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     dungeonId = reader.ReadVarUhShort();
     if (dungeonId < 0)
         throw new Exception("Forbidden value on dungeonId = " + dungeonId + ", it doesn't respect the following condition : dungeonId < 0");
     var limit = reader.ReadUShort();
     playersDungeonReady = new bool[limit];
     for (int i = 0; i < limit; i++)
     {
          (playersDungeonReady as bool[])[i] = reader.ReadBoolean();
     }
 }
 public virtual void Deserialize(ICustomDataInput reader)
 {
     restrictions = new Types.ActorRestrictionsInformations();
     restrictions.Deserialize(reader);
     sex = reader.ReadBoolean();
     var limit = reader.ReadUShort();
     options = new Types.HumanOption[limit];
     for (int i = 0; i < limit; i++)
     {
          (options as Types.HumanOption[])[i] = Types.ProtocolTypeManager.GetInstance<Types.HumanOption>(reader.ReadShort());
          (options as Types.HumanOption[])[i].Deserialize(reader);
     }
 }
 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 override void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     servers = new Types.GameServerInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          (servers as Types.GameServerInformations[])[i] = new Types.GameServerInformations();
          (servers as Types.GameServerInformations[])[i].Deserialize(reader);
     }
     alreadyConnectedToServerId = reader.ReadVarUhShort();
     if (alreadyConnectedToServerId < 0)
         throw new Exception("Forbidden value on alreadyConnectedToServerId = " + alreadyConnectedToServerId + ", it doesn't respect the following condition : alreadyConnectedToServerId < 0");
     canCreateNewCharacter = reader.ReadBoolean();
 }
 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)
 {
     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 byte[limit];
     for (int i = 0; i < limit; i++)
     {
          (ticket as byte[])[i] = reader.ReadByte();
     }
 }
Exemple #23
0
 public virtual 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");
     symbolId = reader.ReadSByte();
     if (symbolId < 0)
         throw new Exception("Forbidden value on symbolId = " + symbolId + ", it doesn't respect the following condition : symbolId < 0");
     mount = reader.ReadBoolean();
     var limit = reader.ReadUShort();
     objects = new Types.PresetItem[limit];
     for (int i = 0; i < limit; i++)
     {
          (objects as Types.PresetItem[])[i] = new Types.PresetItem();
          (objects as Types.PresetItem[])[i].Deserialize(reader);
     }
 }
 public virtual void Deserialize(ICustomDataInput reader)
 {
     id = reader.ReadVarUhShort();
     if (id < 0)
         throw new Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : id < 0");
     status = reader.ReadSByte();
     if (status < 0)
         throw new Exception("Forbidden value on status = " + status + ", it doesn't respect the following condition : status < 0");
     completion = reader.ReadSByte();
     if (completion < 0)
         throw new Exception("Forbidden value on completion = " + completion + ", it doesn't respect the following condition : completion < 0");
     isSelectable = reader.ReadBoolean();
     charactersCount = reader.ReadSByte();
     if (charactersCount < 0)
         throw new Exception("Forbidden value on charactersCount = " + charactersCount + ", it doesn't respect the following condition : charactersCount < 0");
     date = reader.ReadDouble();
     if ((date < -9.007199254740992E15) || (date > 9.007199254740992E15))
         throw new Exception("Forbidden value on date = " + date + ", it doesn't respect the following condition : (date < -9.007199254740992E15) || (date > 9.007199254740992E15)");
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     infos = Types.ProtocolTypeManager.GetInstance<Types.GuildFactSheetInformations>(reader.ReadShort());
     infos.Deserialize(reader);
     creationDate = reader.ReadInt();
     if (creationDate < 0)
         throw new Exception("Forbidden value on creationDate = " + creationDate + ", it doesn't respect the following condition : creationDate < 0");
     nbTaxCollectors = reader.ReadVarUhShort();
     if (nbTaxCollectors < 0)
         throw new Exception("Forbidden value on nbTaxCollectors = " + nbTaxCollectors + ", it doesn't respect the following condition : nbTaxCollectors < 0");
     enabled = reader.ReadBoolean();
     var limit = reader.ReadUShort();
     members = new Types.CharacterMinimalInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          (members as Types.CharacterMinimalInformations[])[i] = new Types.CharacterMinimalInformations();
          (members as Types.CharacterMinimalInformations[])[i].Deserialize(reader);
     }
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     paddockId = reader.ReadInt();
     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)");
     mapId = reader.ReadInt();
     subAreaId = reader.ReadVarUhShort();
     if (subAreaId < 0)
         throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0");
     abandonned = reader.ReadBoolean();
     var limit = reader.ReadUShort();
     mountsInformations = new Types.MountInformationsForPaddock[limit];
     for (int i = 0; i < limit; i++)
     {
          (mountsInformations as Types.MountInformationsForPaddock[])[i] = new Types.MountInformationsForPaddock();
          (mountsInformations as Types.MountInformationsForPaddock[])[i].Deserialize(reader);
     }
 }
 public virtual void Deserialize(ICustomDataInput reader)
 {
     guestId = reader.ReadInt();
     if (guestId < 0)
         throw new Exception("Forbidden value on guestId = " + guestId + ", it doesn't respect the following condition : guestId < 0");
     hostId = reader.ReadInt();
     if (hostId < 0)
         throw new Exception("Forbidden value on hostId = " + hostId + ", it doesn't respect the following condition : hostId < 0");
     name = reader.ReadUTF();
     guestLook = new Types.EntityLook();
     guestLook.Deserialize(reader);
     breed = reader.ReadSByte();
     sex = reader.ReadBoolean();
     status = Types.ProtocolTypeManager.GetInstance<Types.PlayerStatus>(reader.ReadShort());
     status.Deserialize(reader);
     var limit = reader.ReadUShort();
     companions = new Types.PartyCompanionBaseInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          (companions as Types.PartyCompanionBaseInformations[])[i] = new Types.PartyCompanionBaseInformations();
          (companions as Types.PartyCompanionBaseInformations[])[i].Deserialize(reader);
     }
 }
Exemple #28
0
 public override void Deserialize(ICustomDataInput reader)
 {
     this.hasSpouse = reader.ReadBoolean();
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     enabled = reader.ReadBoolean();
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     enable = reader.ReadBoolean();
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     doTutorial = reader.ReadBoolean();
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     m_dareId    = reader.ReadDouble();
     m_subscribe = reader.ReadBoolean();
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     hasStartupActions = reader.ReadBoolean();
 }
Exemple #34
0
 public override void Deserialize(ICustomDataInput reader)
 {
     Quiet = reader.ReadBoolean();
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     DungeonId = reader.ReadVarShort();
     BuddyId   = reader.ReadVarLong();
     Accept    = reader.ReadBoolean();
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     this.preview = reader.ReadBoolean();
 }
Exemple #37
0
 public override void Deserialize(ICustomDataInput reader)
 {
     fightId = reader.ReadInt();
     accept  = reader.ReadBoolean();
 }