public void ReadFromStream(MStreamReader sr) { Time = sr.ReadInt32(); Id = sr.ReadByte(); Count300 = sr.ReadUInt16(); Count100 = sr.ReadUInt16(); Count50 = sr.ReadUInt16(); CountGeki = sr.ReadUInt16(); CountKatu = sr.ReadUInt16(); CountMiss = sr.ReadUInt16(); TotalScore = sr.ReadInt32(); MaxCombo = sr.ReadUInt16(); CurrentCombo = sr.ReadUInt16(); Perfect = sr.ReadBoolean(); CurrentHp = sr.ReadByte(); TagByte = sr.ReadByte(); ScoreV2 = sr.ReadBoolean(); ComboPortion = ScoreV2 ? sr.ReadDouble() : 0; BonusPortion = ScoreV2 ? sr.ReadDouble() : 0; }
public void ReadFromStream(MStreamReader sr) { BeatmapId = sr.ReadInt32(); ParentSetId = sr.ReadInt32(); DiffName = sr.ReadString(); FileMd5 = sr.ReadString(); Mode = (PlayMode)sr.ReadSByte(); Bpm = sr.ReadInt32(); Ar = sr.ReadSingle(); Od = sr.ReadSingle(); Cs = sr.ReadSingle(); Hp = sr.ReadSingle(); TotalLength = sr.ReadInt32(); Playcount = sr.ReadInt32(); Passcount = sr.ReadInt32(); MaxCombo = sr.ReadInt64(); DifficultyRating = sr.ReadDouble(); }