public override void Deserialize(IDataReader reader) { base.Deserialize(reader); teamId = reader.ReadSByte(); if (teamId < 0) { throw new Exception("Forbidden value on teamId = " + teamId + ", it doesn't respect the following condition : teamId < 0"); } wave = reader.ReadSByte(); if (wave < 0) { throw new Exception("Forbidden value on wave = " + wave + ", it doesn't respect the following condition : wave < 0"); } alive = reader.ReadBoolean(); stats = Types.ProtocolTypeManager.GetInstance <Types.GameFightMinimalStats>(reader.ReadShort()); stats.Deserialize(reader); var limit = reader.ReadUShort(); var previousPositions_ = new short[limit]; for (int i = 0; i < limit; i++) { previousPositions_[i] = reader.ReadVarShort(); } previousPositions = previousPositions_; }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); teamId = reader.ReadSByte(); if (teamId < 0) throw new Exception("Forbidden value on teamId = " + teamId + ", it doesn't respect the following condition : teamId < 0"); alive = reader.ReadBoolean(); stats = Types.ProtocolTypeManager.GetInstance<Types.GameFightMinimalStats>(reader.ReadShort()); stats.Deserialize(reader); }
public override void Deserialize(ICustomDataInput reader) { fighterId = reader.ReadDouble(); if (fighterId < -9007199254740990 || fighterId > 9007199254740990) { throw new Exception("Forbidden value on fighterId = " + fighterId + ", it doesn't respect the following condition : fighterId < -9007199254740990 || fighterId > 9007199254740990"); } stats = new Types.GameFightMinimalStats(); stats.Deserialize(reader); }
public void Deserialize(IDataReader reader) { fighterId = reader.ReadDouble(); if (fighterId < -9.007199254740992E15 || fighterId > 9.007199254740992E15) { throw new System.Exception("Forbidden value on fighterId = " + fighterId + ", it doesn't respect the following condition : fighterId < -9.007199254740992E15 || fighterId > 9.007199254740992E15"); } stats = new Types.GameFightMinimalStats(); stats.Deserialize(reader); }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); teamId = reader.ReadSByte(); if (teamId < 0) { throw new Exception("Forbidden value on teamId = " + teamId + ", it doesn't respect the following condition : teamId < 0"); } alive = reader.ReadBoolean(); stats = Types.ProtocolTypeManager.GetInstance <Types.GameFightMinimalStats>(reader.ReadShort()); stats.Deserialize(reader); }
public override void Deserialize(IReader reader) { base.Deserialize(reader); teamId = reader.ReadSByte(); wave = reader.ReadSByte(); alive = reader.ReadBoolean(); stats = ProtocolTypeManager.GetInstance <Types.GameFightMinimalStats>(reader.ReadUShort()); stats.Deserialize(reader); var limit = reader.ReadUShort(); previousPositions = new ushort[limit]; for (int i = 0; i < limit; i++) { (previousPositions as ushort[])[i] = reader.ReadVarUhShort(); } }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); spawnInfo = new Types.GameContextBasicSpawnInformation(); spawnInfo.Deserialize(reader); wave = reader.ReadSbyte(); stats = ProtocolTypeManager.GetInstance <Types.GameFightMinimalStats>(reader.ReadUShort()); stats.Deserialize(reader); var limit = (ushort)reader.ReadUShort(); previousPositions = new uint[limit]; for (int i = 0; i < limit; i++) { previousPositions[i] = reader.ReadVarUhShort(); } }
public virtual void Deserialize(IDataReader reader) { spawnInformation = ProtocolTypeManager.GetInstance <Types.SpawnInformation>(reader.ReadUShort()); spawnInformation.Deserialize(reader); wave = reader.ReadSbyte(); look = new Types.EntityLook(); look.Deserialize(reader); stats = ProtocolTypeManager.GetInstance <Types.GameFightMinimalStats>(reader.ReadUShort()); stats.Deserialize(reader); var limit = (ushort)reader.ReadUShort(); summons = new Types.GameContextBasicSpawnInformation[limit]; for (int i = 0; i < limit; i++) { summons[i] = ProtocolTypeManager.GetInstance <Types.GameContextBasicSpawnInformation>(reader.ReadUShort()); summons[i].Deserialize(reader); } }
public override void Deserialize(IReader reader) { fighterId = reader.ReadDouble(); stats = new Types.GameFightMinimalStats(); stats.Deserialize(reader); }