예제 #1
0
 public bReplayFrameBundle(List <bReplayFrame> frames, ReplayAction action, bScoreFrame scoreFrame, int extra)
 {
     ReplayFrames = frames;
     Action       = action;
     ScoreFrame   = scoreFrame;
     Extra        = extra;
 }
예제 #2
0
        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)
            { }
        }
예제 #3
0
        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)
            { }
        }
예제 #4
0
 public bReplayFrameBundle(List <bReplayFrame> frames, ReplayAction action, bScoreFrame scoreFrame)
 {
     ReplayFrames = frames;
     Action       = action;
     ScoreFrame   = scoreFrame;
 }