public bReplayFrameBundle(List <bReplayFrame> frames, ReplayAction action, bScoreFrame scoreFrame, int extra) { ReplayFrames = frames; Action = action; ScoreFrame = scoreFrame; Extra = extra; }
public bReplayFrameBundle(Stream s) { ReplayFrames = new List <bReplayFrame>(); SerializationReader sr = new SerializationReader(s); int frameCount = sr.ReadUInt16(); for (int i = 0; i < frameCount; i++) { ReplayFrames.Add(new bReplayFrame(s)); } Action = (ReplayAction)sr.ReadByte(); try { ScoreFrame = new bScoreFrame(s); } catch (Exception) { } }
public bReplayFrameBundle(SerializationReader sr) { if (OsuCommon.ProtocolVersion >= 18) { Extra = sr.ReadInt32(); } ReplayFrames = new List <bReplayFrame>(); int frameCount = sr.ReadUInt16(); for (int i = 0; i < frameCount; i++) { ReplayFrames.Add(new bReplayFrame(sr)); } Action = (ReplayAction)sr.ReadByte(); try { ScoreFrame = new bScoreFrame(sr); } catch (Exception) { } }
public bReplayFrameBundle(List <bReplayFrame> frames, ReplayAction action, bScoreFrame scoreFrame) { ReplayFrames = frames; Action = action; ScoreFrame = scoreFrame; }