public override void Deserialize(ICustomDataInput reader) { byte flag1 = reader.ReadByte(); enabled = BooleanByteWrapper.GetFlag(flag1, 0); abandonnedPaddock = BooleanByteWrapper.GetFlag(flag1, 1); 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)"); expLevelFloor = reader.ReadVarUhLong(); if ((expLevelFloor < 0) || (expLevelFloor > 9.007199254740992E15)) throw new Exception("Forbidden value on expLevelFloor = " + expLevelFloor + ", it doesn't respect the following condition : (expLevelFloor < 0) || (expLevelFloor > 9.007199254740992E15)"); 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)"); expNextLevelFloor = reader.ReadVarUhLong(); if ((expNextLevelFloor < 0) || (expNextLevelFloor > 9.007199254740992E15)) throw new Exception("Forbidden value on expNextLevelFloor = " + expNextLevelFloor + ", it doesn't respect the following condition : (expNextLevelFloor < 0) || (expNextLevelFloor > 9.007199254740992E15)"); creationDate = reader.ReadInt(); if (creationDate < 0) throw new Exception("Forbidden value on creationDate = " + creationDate + ", it doesn't respect the following condition : creationDate < 0"); nbTotalMembers = reader.ReadVarUhShort(); if (nbTotalMembers < 0) throw new Exception("Forbidden value on nbTotalMembers = " + nbTotalMembers + ", it doesn't respect the following condition : nbTotalMembers < 0"); nbConnectedMembers = reader.ReadVarUhShort(); if (nbConnectedMembers < 0) throw new Exception("Forbidden value on nbConnectedMembers = " + nbConnectedMembers + ", it doesn't respect the following condition : nbConnectedMembers < 0"); }
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 virtual void Deserialize(ICustomDataInput reader) { var limit = reader.ReadUShort(); quantities = new uint[limit]; for (int i = 0; i < limit; i++) { (quantities as uint[])[i] = reader.ReadVarUhInt(); } limit = reader.ReadUShort(); types = new uint[limit]; for (int i = 0; i < limit; i++) { (types as uint[])[i] = reader.ReadVarUhInt(); } taxPercentage = reader.ReadFloat(); taxModificationPercentage = reader.ReadFloat(); maxItemLevel = reader.ReadByte(); if ((maxItemLevel < 0) || (maxItemLevel > 255)) throw new Exception("Forbidden value on maxItemLevel = " + maxItemLevel + ", it doesn't respect the following condition : (maxItemLevel < 0) || (maxItemLevel > 255)"); maxItemPerAccount = reader.ReadVarUhInt(); if (maxItemPerAccount < 0) throw new Exception("Forbidden value on maxItemPerAccount = " + maxItemPerAccount + ", it doesn't respect the following condition : maxItemPerAccount < 0"); npcContextualId = reader.ReadInt(); unsoldDelay = reader.ReadVarUhShort(); if (unsoldDelay < 0) throw new Exception("Forbidden value on unsoldDelay = " + unsoldDelay + ", it doesn't respect the following condition : unsoldDelay < 0"); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); byte flag1 = reader.ReadByte(); showExperience = BooleanByteWrapper.GetFlag(flag1, 0); showExperienceLevelFloor = BooleanByteWrapper.GetFlag(flag1, 1); showExperienceNextLevelFloor = BooleanByteWrapper.GetFlag(flag1, 2); showExperienceFightDelta = BooleanByteWrapper.GetFlag(flag1, 3); showExperienceForGuild = BooleanByteWrapper.GetFlag(flag1, 4); showExperienceForMount = BooleanByteWrapper.GetFlag(flag1, 5); isIncarnationExperience = BooleanByteWrapper.GetFlag(flag1, 6); 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)"); experienceLevelFloor = reader.ReadVarUhLong(); if ((experienceLevelFloor < 0) || (experienceLevelFloor > 9.007199254740992E15)) throw new Exception("Forbidden value on experienceLevelFloor = " + experienceLevelFloor + ", it doesn't respect the following condition : (experienceLevelFloor < 0) || (experienceLevelFloor > 9.007199254740992E15)"); experienceNextLevelFloor = reader.ReadDouble(); if ((experienceNextLevelFloor < 0) || (experienceNextLevelFloor > 9.007199254740992E15)) throw new Exception("Forbidden value on experienceNextLevelFloor = " + experienceNextLevelFloor + ", it doesn't respect the following condition : (experienceNextLevelFloor < 0) || (experienceNextLevelFloor > 9.007199254740992E15)"); experienceFightDelta = reader.ReadVarInt(); experienceForGuild = reader.ReadVarUhInt(); if (experienceForGuild < 0) throw new Exception("Forbidden value on experienceForGuild = " + experienceForGuild + ", it doesn't respect the following condition : experienceForGuild < 0"); experienceForMount = reader.ReadVarUhInt(); if (experienceForMount < 0) throw new Exception("Forbidden value on experienceForMount = " + experienceForMount + ", it doesn't respect the following condition : experienceForMount < 0"); rerollExperienceMul = reader.ReadSByte(); if (rerollExperienceMul < 0) throw new Exception("Forbidden value on rerollExperienceMul = " + rerollExperienceMul + ", it doesn't respect the following condition : rerollExperienceMul < 0"); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); emoteId = reader.ReadByte(); if ((emoteId < 0) || (emoteId > 255)) throw new Exception("Forbidden value on emoteId = " + emoteId + ", it doesn't respect the following condition : (emoteId < 0) || (emoteId > 255)"); }
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) { byte flag1 = reader.ReadByte(); isSecret = BooleanByteWrapper.GetFlag(flag1, 0); isRestrictedToPartyOnly = BooleanByteWrapper.GetFlag(flag1, 1); isClosed = BooleanByteWrapper.GetFlag(flag1, 2); isAskingForHelp = BooleanByteWrapper.GetFlag(flag1, 3); }
public override void Deserialize(ICustomDataInput 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(ICustomDataInput reader) { byte flag1 = reader.ReadByte(); success = BooleanByteWrapper.GetFlag(flag1, 0); automaticAction = BooleanByteWrapper.GetFlag(flag1, 1); actionId = reader.ReadInt(); if (actionId < 0) throw new Exception("Forbidden value on actionId = " + actionId + ", it doesn't respect the following condition : actionId < 0"); }
public override void Deserialize(ICustomDataInput reader) { objectUID = reader.ReadVarUhInt(); if (objectUID < 0) throw new Exception("Forbidden value on objectUID = " + objectUID + ", it doesn't respect the following condition : objectUID < 0"); position = reader.ReadByte(); if ((position < 0) || (position > 255)) throw new Exception("Forbidden value on position = " + position + ", it doesn't respect the following condition : (position < 0) || (position > 255)"); }
public override void Deserialize(ICustomDataInput reader) { emoteId = reader.ReadByte(); if ((emoteId < 0) || (emoteId > 255)) throw new Exception("Forbidden value on emoteId = " + emoteId + ", it doesn't respect the following condition : (emoteId < 0) || (emoteId > 255)"); emoteStartTime = reader.ReadDouble(); if ((emoteStartTime < -9.007199254740992E15) || (emoteStartTime > 9.007199254740992E15)) throw new Exception("Forbidden value on emoteStartTime = " + emoteStartTime + ", it doesn't respect the following condition : (emoteStartTime < -9.007199254740992E15) || (emoteStartTime > 9.007199254740992E15)"); }
public override void Deserialize(ICustomDataInput reader) { hostUID = reader.ReadVarUhInt(); if (hostUID < 0) throw new Exception("Forbidden value on hostUID = " + hostUID + ", it doesn't respect the following condition : hostUID < 0"); hostPos = reader.ReadByte(); if ((hostPos < 0) || (hostPos > 255)) throw new Exception("Forbidden value on hostPos = " + hostPos + ", it doesn't respect the following condition : (hostPos < 0) || (hostPos > 255)"); }
public override void Deserialize(ICustomDataInput reader) { skillId = reader.ReadVarUhInt(); if (skillId < 0) throw new Exception("Forbidden value on skillId = " + skillId + ", it doesn't respect the following condition : skillId < 0"); crafterJobLevel = reader.ReadByte(); if ((crafterJobLevel < 0) || (crafterJobLevel > 255)) throw new Exception("Forbidden value on crafterJobLevel = " + crafterJobLevel + ", it doesn't respect the following condition : (crafterJobLevel < 0) || (crafterJobLevel > 255)"); }
public override void Deserialize(ICustomDataInput reader) { var limit = reader.ReadUShort(); emoteIds = new byte[limit]; for (int i = 0; i < limit; i++) { (emoteIds as byte[])[i] = reader.ReadByte(); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); level = reader.ReadByte(); if ((level < 1) || (level > 200)) throw new Exception("Forbidden value on level = " + level + ", it doesn't respect the following condition : (level < 1) || (level > 200)"); guildInfo = new Types.BasicGuildInformations(); guildInfo.Deserialize(reader); experienceForGuild = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); identification = Types.ProtocolTypeManager.GetInstance<Types.TaxCollectorStaticInformations>(reader.ReadShort()); identification.Deserialize(reader); guildLevel = reader.ReadByte(); if ((guildLevel < 0) || (guildLevel > 255)) throw new Exception("Forbidden value on guildLevel = " + guildLevel + ", it doesn't respect the following condition : (guildLevel < 0) || (guildLevel > 255)"); taxCollectorAttack = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { ValidToken = reader.ReadBoolean(); var countTicket = reader.ReadVarInt(); Ticket = new List <byte>(); for (int i = 0; i < countTicket; i++) { Ticket.Add(reader.ReadByte()); } }
public override void Deserialize(ICustomDataInput reader) { int jobIdsCount = reader.ReadUShort(); int jobIdsIndex; m_jobIds = new System.Collections.Generic.List <byte>(); for (jobIdsIndex = 0; (jobIdsIndex < jobIdsCount); jobIdsIndex = (jobIdsIndex + 1)) { m_jobIds.Add(reader.ReadByte()); } }
public override void Deserialize(ICustomDataInput reader) { AbandonnedPaddock = reader.ReadBoolean(); Level = reader.ReadByte(); ExpLevelFloor = reader.ReadVarLong(); Experience = reader.ReadVarLong(); ExpNextLevelFloor = reader.ReadVarLong(); CreationDate = reader.ReadInt(); NbTotalMembers = reader.ReadVarShort(); NbConnectedMembers = reader.ReadVarShort(); }
public override void Deserialize(ICustomDataInput reader) { byte flag = reader.ReadByte(); m_secondHand = BooleanByteWrapper.GetFlag(flag, 0); m_isLocked = BooleanByteWrapper.GetFlag(flag, 1); m_isSaleLocked = BooleanByteWrapper.GetFlag(flag, 2); m_instanceId = reader.ReadInt(); m_ownerName = reader.ReadUTF(); m_price = reader.ReadVarLong(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); byte box0 = reader.ReadByte(); ShowExperience = BooleanByteWrapper.GetFlag(box0, 1); ShowExperienceLevelFloor = BooleanByteWrapper.GetFlag(box0, 2); ShowExperienceNextLevelFloor = BooleanByteWrapper.GetFlag(box0, 3); ShowExperienceFightDelta = BooleanByteWrapper.GetFlag(box0, 4); ShowExperienceForGuild = BooleanByteWrapper.GetFlag(box0, 5); ShowExperienceForMount = BooleanByteWrapper.GetFlag(box0, 6); IsIncarnationExperience = BooleanByteWrapper.GetFlag(box0, 7); Experience = reader.ReadVarLong(); ExperienceLevelFloor = reader.ReadVarLong(); ExperienceNextLevelFloor = reader.ReadVarLong(); ExperienceFightDelta = reader.ReadVarLong(); ExperienceForGuild = reader.ReadVarLong(); ExperienceForMount = reader.ReadVarLong(); RerollExperienceMul = reader.ReadByte(); }
public override void Deserialize(ICustomDataInput reader) { ActionType = reader.ReadByte(); var countRidesId = reader.ReadShort(); RidesId = new List <int>(); for (short i = 0; i < countRidesId; i++) { RidesId.Add(reader.ReadVarInt()); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); byte flag = reader.ReadByte(); m_showExperience = BooleanByteWrapper.GetFlag(flag, 0); m_showExperienceLevelFloor = BooleanByteWrapper.GetFlag(flag, 1); m_showExperienceNextLevelFloor = BooleanByteWrapper.GetFlag(flag, 2); m_showExperienceFightDelta = BooleanByteWrapper.GetFlag(flag, 3); m_showExperienceForGuild = BooleanByteWrapper.GetFlag(flag, 4); m_showExperienceForMount = BooleanByteWrapper.GetFlag(flag, 5); m_isIncarnationExperience = BooleanByteWrapper.GetFlag(flag, 6); m_experience = reader.ReadVarUhLong(); m_experienceLevelFloor = reader.ReadVarUhLong(); m_experienceNextLevelFloor = reader.ReadVarUhLong(); m_experienceFightDelta = reader.ReadVarUhLong(); m_experienceForGuild = reader.ReadVarUhLong(); m_experienceForMount = reader.ReadVarUhLong(); m_rerollExperienceMul = reader.ReadByte(); }
public override void Deserialize(ICustomDataInput reader) { byte box0 = reader.ReadByte(); SecondHand = BooleanByteWrapper.GetFlag(box0, 1); IsLocked = BooleanByteWrapper.GetFlag(box0, 2); IsSaleLocked = BooleanByteWrapper.GetFlag(box0, 3); InstanceId = reader.ReadInt(); OwnerName = reader.ReadUTF(); Price = reader.ReadVarLong(); }
public override void Deserialize(ICustomDataInput reader) { Type = reader.ReadByte(); var countParams_ = reader.ReadShort(); Params_ = new List <int>(); for (short i = 0; i < countParams_; i++) { Params_.Add(reader.ReadInt()); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); companionGenericId = reader.ReadSByte(); if (companionGenericId < 0) throw new Exception("Forbidden value on companionGenericId = " + companionGenericId + ", it doesn't respect the following condition : companionGenericId < 0"); 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)"); masterId = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { Salt = reader.ReadUTF(); var countKey = reader.ReadVarInt(); Key = new List <byte>(); for (int i = 0; i < countKey; i++) { Key.Add(reader.ReadByte()); } }
public override void Deserialize(ICustomDataInput reader) { this.lockDuration = reader.ReadByte(); if (this.lockDuration < 0 || this.lockDuration > 255) { throw new Exception("Forbidden value on lockDuration = " + this.lockDuration + ", it doesn't respect the following condition : lockDuration < 0 || lockDuration > 255"); } this.author = reader.ReadUTF(); this.content = reader.ReadUTF(); }
public override void Deserialize(ICustomDataInput reader) { MarkAuthorId = reader.ReadDouble(); MarkTeamId = reader.ReadByte(); MarkSpellId = reader.ReadInt(); MarkSpellLevel = reader.ReadShort(); MarkId = reader.ReadShort(); MarkType = reader.ReadByte(); MarkimpactCell = reader.ReadShort(); var countCells = reader.ReadShort(); Cells = new List <GameActionMarkedCell>(); for (short i = 0; i < countCells; i++) { GameActionMarkedCell type = new GameActionMarkedCell(); type.Deserialize(reader); Cells.Add(type); } Active = reader.ReadBoolean(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); byte box0 = reader.ReadByte(); Sex = BooleanByteWrapper.GetFlag(box0, 1); HavenBagShared = BooleanByteWrapper.GetFlag(box0, 2); PlayerId = reader.ReadVarLong(); PlayerName = reader.ReadUTF(); Level = reader.ReadVarShort(); AlignmentSide = reader.ReadByte(); Breed = reader.ReadByte(); GuildInfo = new GuildInformations(); GuildInfo.Deserialize(reader); MoodSmileyId = reader.ReadVarShort(); var statusTypeId = reader.ReadShort(); Status = new PlayerStatus(); Status.Deserialize(reader); }
public override void Deserialize(ICustomDataInput reader) { this.newLevel = reader.ReadByte(); if (this.newLevel < 0 || this.newLevel > 255) { throw new Exception("Forbidden value on newLevel = " + this.newLevel + ", it doesn't respect the following condition : newLevel < 0 || newLevel > 255"); } this.jobsDescription = new JobDescription(); this.jobsDescription.Deserialize(reader); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); var countElementEventIds = reader.ReadShort(); ElementEventIds = new List <byte>(); for (short i = 0; i < countElementEventIds; i++) { ElementEventIds.Add(reader.ReadByte()); } }
public override void Deserialize(ICustomDataInput reader) { Id_ = reader.ReadInt(); var countSteps = reader.ReadShort(); Steps = new List <byte>(); for (short i = 0; i < countSteps; i++) { Steps.Add(reader.ReadByte()); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); this.ownerName = reader.ReadUTF(); 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"); } }
public override void Deserialize(ICustomDataInput reader) { int stepsCount = reader.ReadUShort(); int stepsIndex; m_steps = new System.Collections.Generic.List <byte>(); for (stepsIndex = 0; (stepsIndex < stepsCount); stepsIndex = (stepsIndex + 1)) { m_steps.Add(reader.ReadByte()); } m_ObjectId = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { MsgType = reader.ReadByte(); MsgId = reader.ReadVarShort(); var countParameters = reader.ReadShort(); Parameters = new List <string>(); for (short i = 0; i < countParameters; i++) { Parameters.Add(reader.ReadUTF()); } }
public override void Deserialize(ICustomDataInput reader) { int paramsCount = reader.ReadUShort(); int paramsIndex; m_params = new System.Collections.Generic.List <int>(); for (paramsIndex = 0; (paramsIndex < paramsCount); paramsIndex = (paramsIndex + 1)) { m_params.Add(reader.ReadInt()); } m_type = reader.ReadByte(); }
public override void Deserialize(ICustomDataInput reader) { livingUID = reader.ReadVarUhInt(); if (livingUID < 0) throw new Exception("Forbidden value on livingUID = " + livingUID + ", it doesn't respect the following condition : livingUID < 0"); livingPosition = reader.ReadByte(); if ((livingPosition < 0) || (livingPosition > 255)) throw new Exception("Forbidden value on livingPosition = " + livingPosition + ", it doesn't respect the following condition : (livingPosition < 0) || (livingPosition > 255)"); skinId = reader.ReadVarUhInt(); if (skinId < 0) throw new Exception("Forbidden value on skinId = " + skinId + ", it doesn't respect the following condition : skinId < 0"); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); PlayerId = reader.ReadVarLong(); PlayerName = reader.ReadUTF(); Breed = reader.ReadByte(); Sex = reader.ReadBoolean(); Level = reader.ReadVarShort(); LeagueId = reader.ReadVarShort(); TotalLeaguePoints = reader.ReadVarShort(); LadderPosition = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); byte flag = reader.ReadByte(); m_sex = BooleanByteWrapper.GetFlag(flag, 0); m_havenBagShared = BooleanByteWrapper.GetFlag(flag, 1); m_breed = reader.ReadByte(); m_rank = reader.ReadVarUhShort(); m_givenExperience = reader.ReadVarUhLong(); m_experienceGivenPercent = reader.ReadByte(); m_rights = reader.ReadVarUhInt(); m_connected = reader.ReadByte(); m_alignmentSide = reader.ReadByte(); m_hoursSinceLastConnection = reader.ReadUShort(); m_moodSmileyId = reader.ReadVarUhShort(); m_accountId = reader.ReadInt(); m_achievementPoints = reader.ReadInt(); m_status = ProtocolTypeManager.GetInstance <PlayerStatus>((short)reader.ReadUShort()); m_status.Deserialize(reader); }
public override void Deserialize(ICustomDataInput reader) { byte flag1 = reader.ReadByte(); success = BooleanByteWrapper.GetFlag(flag1, 0); automaticAction = BooleanByteWrapper.GetFlag(flag1, 1); actionId = reader.ReadInt(); if (actionId < 0) { throw new Exception("Forbidden value on actionId = " + actionId + ", it doesn't respect the following condition : actionId < 0"); } }
public override void Deserialize(ICustomDataInput reader) { int ridesIdCount = reader.ReadUShort(); int ridesIdIndex; m_ridesId = new System.Collections.Generic.List <uint>(); for (ridesIdIndex = 0; (ridesIdIndex < ridesIdCount); ridesIdIndex = (ridesIdIndex + 1)) { m_ridesId.Add(reader.ReadVarUhInt()); } m_actionType = reader.ReadByte(); }
public virtual void Deserialize(ICustomDataInput reader) { position = reader.ReadByte(); if ((position < 0) || (position > 255)) throw new Exception("Forbidden value on position = " + position + ", it doesn't respect the following condition : (position < 0) || (position > 255)"); objGid = reader.ReadVarUhShort(); if (objGid < 0) throw new Exception("Forbidden value on objGid = " + objGid + ", it doesn't respect the following condition : objGid < 0"); objUid = reader.ReadVarUhInt(); if (objUid < 0) throw new Exception("Forbidden value on objUid = " + objUid + ", it doesn't respect the following condition : objUid < 0"); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); m_fightMap = new MapCoordinatesExtended(); m_fightMap.Deserialize(reader); m_reason = reader.ReadByte(); m_memberId = reader.ReadVarUhLong(); m_memberAccountId = reader.ReadInt(); m_memberName = reader.ReadUTF(); m_fightId = reader.ReadInt(); m_timeBeforeFightStart = reader.ReadVarShort(); }
public override void Deserialize(ICustomDataInput reader) { int itemsPositionsCount = reader.ReadUShort(); int itemsPositionsIndex; m_itemsPositions = new System.Collections.Generic.List <sbyte>(); for (itemsPositionsIndex = 0; (itemsPositionsIndex < itemsPositionsCount); itemsPositionsIndex = (itemsPositionsIndex + 1)) { m_itemsPositions.Add(reader.ReadSByte()); } int itemsUidsCount = reader.ReadUShort(); int itemsUidsIndex; m_itemsUids = new System.Collections.Generic.List <uint>(); for (itemsUidsIndex = 0; (itemsUidsIndex < itemsUidsCount); itemsUidsIndex = (itemsUidsIndex + 1)) { m_itemsUids.Add(reader.ReadVarUhInt()); } m_presetId = reader.ReadByte(); m_symbolId = reader.ReadByte(); }
public override void Deserialize(ICustomDataInput reader) { byte flag1 = reader.ReadByte(); activate = BooleanByteWrapper.GetFlag(flag1, 0); party = BooleanByteWrapper.GetFlag(flag1, 1); idolId = reader.ReadVarUhShort(); if (idolId < 0) { throw new Exception("Forbidden value on idolId = " + idolId + ", it doesn't respect the following condition : idolId < 0"); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); identification = Types.ProtocolTypeManager.GetInstance <Types.TaxCollectorStaticInformations>(reader.ReadShort()); identification.Deserialize(reader); guildLevel = reader.ReadByte(); if (guildLevel < 0 || guildLevel > 255) { throw new Exception("Forbidden value on guildLevel = " + guildLevel + ", it doesn't respect the following condition : guildLevel < 0 || guildLevel > 255"); } taxCollectorAttack = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { MsgType = reader.ReadByte(); MsgId = reader.ReadVarUhShort(); ushort length = reader.ReadUShort(); Parameters = new List <string>(); for (int i = 0; i < length; i++) { Parameters.Add(reader.ReadUTF()); } }
public override void Deserialize(ICustomDataInput reader) { m_markAuthorId = reader.ReadDouble(); m_markTeamId = reader.ReadByte(); m_markSpellId = reader.ReadInt(); m_markSpellLevel = reader.ReadShort(); m_markId = reader.ReadShort(); m_markType = reader.ReadByte(); m_markimpactCell = reader.ReadShort(); int cellsCount = reader.ReadUShort(); int cellsIndex; m_cells = new System.Collections.Generic.List <GameActionMarkedCell>(); for (cellsIndex = 0; (cellsIndex < cellsCount); cellsIndex = (cellsIndex + 1)) { GameActionMarkedCell objectToAdd = new GameActionMarkedCell(); objectToAdd.Deserialize(reader); m_cells.Add(objectToAdd); } m_active = reader.ReadBoolean(); }
public override void Deserialize(ICustomDataInput reader) { byte flag1 = reader.ReadByte(); canBeCancelled = BooleanByteWrapper.GetFlag(flag1, 0); canSayReady = BooleanByteWrapper.GetFlag(flag1, 1); isFightStarted = BooleanByteWrapper.GetFlag(flag1, 2); timeMaxBeforeFightStart = reader.ReadShort(); if (timeMaxBeforeFightStart < 0) throw new Exception("Forbidden value on timeMaxBeforeFightStart = " + timeMaxBeforeFightStart + ", it doesn't respect the following condition : timeMaxBeforeFightStart < 0"); fightType = reader.ReadSByte(); if (fightType < 0) throw new Exception("Forbidden value on fightType = " + fightType + ", it doesn't respect the following condition : fightType < 0"); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); deathState = reader.ReadSByte(); if (deathState < 0) throw new Exception("Forbidden value on deathState = " + deathState + ", it doesn't respect the following condition : deathState < 0"); deathCount = reader.ReadVarUhShort(); if (deathCount < 0) throw new Exception("Forbidden value on deathCount = " + deathCount + ", it doesn't respect the following condition : deathCount < 0"); deathMaxLevel = reader.ReadByte(); if ((deathMaxLevel < 1) || (deathMaxLevel > 200)) throw new Exception("Forbidden value on deathMaxLevel = " + deathMaxLevel + ", it doesn't respect the following condition : (deathMaxLevel < 1) || (deathMaxLevel > 200)"); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); level = reader.ReadByte(); if ((level < 1) || (level > 200)) throw new Exception("Forbidden value on level = " + level + ", it doesn't respect the following condition : (level < 1) || (level > 200)"); var limit = reader.ReadUShort(); additional = new Types.FightResultAdditionalData[limit]; for (int i = 0; i < limit; i++) { (additional as Types.FightResultAdditionalData[])[i] = Types.ProtocolTypeManager.GetInstance<Types.FightResultAdditionalData>(reader.ReadShort()); (additional as Types.FightResultAdditionalData[])[i].Deserialize(reader); } }
public virtual void Deserialize(ICustomDataInput 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(); 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(ICustomDataInput reader) { base.Deserialize(reader); byte flag1 = reader.ReadByte(); hasFriend = BooleanByteWrapper.GetFlag(flag1, 0); hasGuildMember = BooleanByteWrapper.GetFlag(flag1, 1); hasAllianceMember = BooleanByteWrapper.GetFlag(flag1, 2); hasGroupMember = BooleanByteWrapper.GetFlag(flag1, 3); hasMyTaxCollector = BooleanByteWrapper.GetFlag(flag1, 4); teamMembersCount = reader.ReadSByte(); if (teamMembersCount < 0) throw new Exception("Forbidden value on teamMembersCount = " + teamMembersCount + ", it doesn't respect the following condition : teamMembersCount < 0"); meanLevel = reader.ReadVarUhInt(); if (meanLevel < 0) throw new Exception("Forbidden value on meanLevel = " + meanLevel + ", it doesn't respect the following condition : meanLevel < 0"); }
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) { 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(); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); byte flag1 = reader.ReadByte(); keyRingBonus = BooleanByteWrapper.GetFlag(flag1, 0); hasHardcoreDrop = BooleanByteWrapper.GetFlag(flag1, 1); hasAVARewardToken = BooleanByteWrapper.GetFlag(flag1, 2); staticInfos = Types.ProtocolTypeManager.GetInstance<Types.GroupMonsterStaticInformations>(reader.ReadShort()); staticInfos.Deserialize(reader); ageBonus = reader.ReadShort(); if ((ageBonus < -1) || (ageBonus > 1000)) throw new Exception("Forbidden value on ageBonus = " + ageBonus + ", it doesn't respect the following condition : (ageBonus < -1) || (ageBonus > 1000)"); lootShare = reader.ReadSByte(); if ((lootShare < -1) || (lootShare > 8)) throw new Exception("Forbidden value on lootShare = " + lootShare + ", it doesn't respect the following condition : (lootShare < -1) || (lootShare > 8)"); alignmentSide = reader.ReadSByte(); }
public virtual void Deserialize(ICustomDataInput reader) { byte flag1 = reader.ReadByte(); isOnSale = BooleanByteWrapper.GetFlag(flag1, 0); isSaleLocked = BooleanByteWrapper.GetFlag(flag1, 1); houseId = reader.ReadVarUhInt(); if (houseId < 0) throw new Exception("Forbidden value on houseId = " + houseId + ", it doesn't respect the following condition : houseId < 0"); var limit = reader.ReadUShort(); doorsOnMap = new int[limit]; for (int i = 0; i < limit; i++) { (doorsOnMap as int[])[i] = reader.ReadInt(); } ownerName = reader.ReadUTF(); modelId = reader.ReadVarUhShort(); if (modelId < 0) throw new Exception("Forbidden value on modelId = " + modelId + ", it doesn't respect the following condition : modelId < 0"); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); initiative = reader.ReadVarUhShort(); if (initiative < 0) throw new Exception("Forbidden value on initiative = " + initiative + ", it doesn't respect the following condition : initiative < 0"); lifePoints = reader.ReadVarUhInt(); if (lifePoints < 0) throw new Exception("Forbidden value on lifePoints = " + lifePoints + ", it doesn't respect the following condition : lifePoints < 0"); maxLifePoints = reader.ReadVarUhInt(); if (maxLifePoints < 0) throw new Exception("Forbidden value on maxLifePoints = " + maxLifePoints + ", it doesn't respect the following condition : maxLifePoints < 0"); prospecting = reader.ReadVarUhShort(); if (prospecting < 0) throw new Exception("Forbidden value on prospecting = " + prospecting + ", it doesn't respect the following condition : prospecting < 0"); regenRate = reader.ReadByte(); if ((regenRate < 0) || (regenRate > 255)) throw new Exception("Forbidden value on regenRate = " + regenRate + ", it doesn't respect the following condition : (regenRate < 0) || (regenRate > 255)"); }
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"); symbolId = reader.ReadSByte(); if (symbolId < 0) throw new Exception("Forbidden value on symbolId = " + symbolId + ", it doesn't respect the following condition : symbolId < 0"); var limit = reader.ReadUShort(); itemsPositions = new byte[limit]; for (int i = 0; i < limit; i++) { (itemsPositions as byte[])[i] = reader.ReadByte(); } limit = reader.ReadUShort(); itemsUids = new uint[limit]; for (int i = 0; i < limit; i++) { (itemsUids as uint[])[i] = reader.ReadVarUhInt(); } }