public override void Deserialize(BigEndianReader reader) { collectorName = reader.ReadUTF(); 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.ReadVarShort(); if (subAreaId < 0) throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0"); userName = reader.ReadUTF(); experience = reader.ReadDouble(); if (experience < -9.007199254740992E15 || experience > 9.007199254740992E15) throw new Exception("Forbidden value on experience = " + experience + ", it doesn't respect the following condition : experience < -9.007199254740992E15 || experience > 9.007199254740992E15"); var limit = reader.ReadUShort(); objectsInfos = new Types.ObjectItemQuantity[limit]; for (int i = 0; i < limit; i++) { objectsInfos[i] = new Types.ObjectItemQuantity(); objectsInfos[i].Deserialize(reader); } }
public override void Deserialize(BigEndianReader 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.ReadVarInt(); 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[i] = Types.ProtocolTypeManager.GetInstance<Types.AbstractSocialGroupInfos>(reader.ReadShort()); socialGroups[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 override void Deserialize(BigEndianReader reader) { allianceName = reader.ReadUTF(); allianceTag = reader.ReadUTF(); allianceEmblem = new Types.GuildEmblem(); allianceEmblem.Deserialize(reader); }
public override void Deserialize(BigEndianReader 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.ReadVarInt(); 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.ReadVarInt(); 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[i] = new Types.PartyInvitationMemberInformations(); members[i].Deserialize(reader); } limit = reader.ReadUShort(); guests = new Types.PartyGuestInformations[limit]; for (int i = 0; i < limit; i++) { guests[i] = new Types.PartyGuestInformations(); guests[i].Deserialize(reader); } }
public override void Deserialize(BigEndianReader reader) { filenameHash = reader.ReadUTF(); type = reader.ReadSByte(); if (type < 0) throw new Exception("Forbidden value on type = " + type + ", it doesn't respect the following condition : type < 0"); value = reader.ReadUTF(); }
public override void Deserialize(BigEndianReader reader) { errorId = reader.ReadSByte(); if (errorId < 0) throw new Exception("Forbidden value on errorId = " + errorId + ", it doesn't respect the following condition : errorId < 0"); message = reader.ReadUTF(); helpUrl = reader.ReadUTF(); }
public virtual void Deserialize(BigEndianReader reader) { modelId = reader.ReadSByte(); if (modelId < 0) throw new Exception("Forbidden value on modelId = " + modelId + ", it doesn't respect the following condition : modelId < 0"); name = reader.ReadUTF(); ownerName = reader.ReadUTF(); }
public override void Deserialize(BigEndianReader reader) { lockDuration = reader.ReadByte(); if (lockDuration < 0 || lockDuration > 255) throw new Exception("Forbidden value on lockDuration = " + lockDuration + ", it doesn't respect the following condition : lockDuration < 0 || lockDuration > 255"); author = reader.ReadUTF(); content = reader.ReadUTF(); }
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"); content = reader.ReadUTF(); timestamp = reader.ReadInt(); if (timestamp < 0) throw new Exception("Forbidden value on timestamp = " + timestamp + ", it doesn't respect the following condition : timestamp < 0"); fingerprint = reader.ReadUTF(); }
public override void Deserialize(BigEndianReader reader) { name = reader.ReadUTF(); 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"); liberator = reader.ReadUTF(); }
public override void Deserialize(BigEndianReader reader) { byte flag1 = reader.ReadByte(); ssl = BooleanByteWrapper.GetFlag(flag1, 0); canCreateNewCharacter = BooleanByteWrapper.GetFlag(flag1, 1); serverId = reader.ReadVarShort(); 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"); ticket = reader.ReadUTF(); }
private Delegate0 method_0(int int_0, BigEndianReader dofusReader_0) { switch (int_0) { case -1: return new Delegate0(this.method_9); case -2: return new Delegate0(this.method_10); case -3: return new Delegate0(this.method_5); case -4: return new Delegate0(this.method_11); case -5: return new Delegate0(this.method_12); case -6: return new Delegate0(this.method_13); case -99: string str = dofusReader_0.ReadUTF(); this.class17_0 = new Class17(str, dofusReader_0); return new Delegate0(this.method_1); } if ((int_0 > 0)) { return new Delegate0(this.method_2); } return null; }
public override void Deserialize(BigEndianReader reader) { recrutedName = reader.ReadUTF(); invitationState = reader.ReadSByte(); if (invitationState < 0) throw new Exception("Forbidden value on invitationState = " + invitationState + ", it doesn't respect the following condition : invitationState < 0"); }
public virtual void Deserialize(BigEndianReader reader) { //houseId = reader.ReadInt(); houseId = reader.ReadVarInt(); if (houseId < 0) throw new Exception("Forbidden value on houseId = " + houseId + ", it doesn't respect the following condition : houseId < 0"); 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(); 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.ReadVarShort(); if (subAreaId < 0) throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0"); var limit = reader.ReadUShort(); skillListIds = new int[limit]; for (int i = 0; i < limit; i++) { skillListIds[i] = reader.ReadInt(); } guildshareParams = reader.ReadVarInt(); if (guildshareParams < 0) throw new Exception("Forbidden value on guildshareParams = " + guildshareParams + ", it doesn't respect the following condition : guildshareParams < 0"); }
public virtual void Deserialize(BigEndianReader 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(BigEndianReader reader) { level = reader.ReadSByte(); if (level < 0) throw new Exception("Forbidden value on level = " + level + ", it doesn't respect the following condition : level < 0"); message = reader.ReadUTF(); }
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) { byte flag1 = reader.ReadByte(); autoconnect = BooleanByteWrapper.GetFlag(flag1, 0); useCertificate = BooleanByteWrapper.GetFlag(flag1, 1); useLoginToken = BooleanByteWrapper.GetFlag(flag1, 2); version = new Types.VersionExtended(); version.Deserialize(reader); lang = reader.ReadUTF(); var limit = reader.ReadVarInt(); credentials = new sbyte[limit]; for (int i = 0; i < limit; i++) { credentials[i] = reader.ReadSByte(); } serverId = reader.ReadShort(); sessionOptionalSalt = reader.ReadDouble(); if (sessionOptionalSalt < -9.007199254740992E15 || sessionOptionalSalt > 9.007199254740992E15) throw new Exception("Forbidden value on sessionOptionalSalt = " + sessionOptionalSalt + ", it doesn't respect the following condition : sessionOptionalSalt < -9.007199254740992E15 || sessionOptionalSalt > 9.007199254740992E15"); ushort length = reader.ReadUShort(); failedAttempts = new List<short>(); for (int i = 0; i < length; i++) { failedAttempts.Add(reader.ReadVarShort()); } }
public override void Deserialize(BigEndianReader reader) { mapId = reader.ReadInt(); if (mapId < 0) throw new Exception("Forbidden value on mapId = " + mapId + ", it doesn't respect the following condition : mapId < 0"); mapKey = reader.ReadUTF(); }
public override void Deserialize(BigEndianReader reader) { byte flag1 = reader.ReadByte(); success = BooleanByteWrapper.GetFlag(flag1, 0); session = BooleanByteWrapper.GetFlag(flag1, 1); name = reader.ReadUTF(); }
public override void Deserialize(BigEndianReader reader) { base.Deserialize(reader); name = reader.ReadUTF(); status = new Types.PlayerStatus(); status.Deserialize(reader); }
public override void Deserialize(BigEndianReader 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 override void Deserialize(BigEndianReader reader) { name = reader.ReadUTF(); mountId = reader.ReadDouble(); if (mountId < -9.007199254740992E15 || mountId > 9.007199254740992E15) throw new Exception("Forbidden value on mountId = " + mountId + ", it doesn't respect the following condition : mountId < -9.007199254740992E15 || mountId > 9.007199254740992E15"); }
public virtual void Deserialize(BigEndianReader reader) { id = reader.ReadInt(); if (id < 0) throw new Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : id < 0"); hash = reader.ReadUTF(); }
public virtual 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"); accountName = reader.ReadUTF(); }
public override void Deserialize(BigEndianReader reader) { characterId = reader.ReadInt(); if (characterId < 0) throw new Exception("Forbidden value on characterId = " + characterId + ", it doesn't respect the following condition : characterId < 0"); secretAnswerHash = reader.ReadUTF(); }
public override void Deserialize(BigEndianReader reader) { base.Deserialize(reader); guildId = reader.ReadVarInt(); if (guildId < 0) throw new Exception("Forbidden value on guildId = " + guildId + ", it doesn't respect the following condition : guildId < 0"); guildName = reader.ReadUTF(); }
public override void Deserialize(BigEndianReader reader) { base.Deserialize(reader); ownerName = reader.ReadUTF(); level = reader.ReadByte(); if (level < 0 || level > 255) throw new Exception("Forbidden value on level = " + level + ", it doesn't respect the following condition : level < 0 || level > 255"); }
public override void Deserialize(BigEndianReader reader) { base.Deserialize(reader); titleId = reader.ReadVarShort(); if (titleId < 0) throw new Exception("Forbidden value on titleId = " + titleId + ", it doesn't respect the following condition : titleId < 0"); titleParam = reader.ReadUTF(); }
public override void Deserialize(BigEndianReader reader) { base.Deserialize(reader); allianceId = reader.ReadVarInt(); if (allianceId < 0) throw new Exception("Forbidden value on allianceId = " + allianceId + ", it doesn't respect the following condition : allianceId < 0"); allianceTag = reader.ReadUTF(); }