Exemplo n.º 1
0
 public BanchoReplayFrameBundle(ReplayAction action, BanchoScoreFrame scoreFrame,
                                IEnumerable <BanchoReplayFrame> replayFrames, int extra = 0)
 {
     Action            = action;
     CurrentScoreState = scoreFrame;
     ReplayFrames      = replayFrames.ToList();
     ExtraData         = extra;
 }
Exemplo n.º 2
0
        public void ReadFromStream(SerializationReader r)
        {
            ExtraData = r.ReadInt32();

            ReplayFrames = new List <BanchoReplayFrame>();
            int length = r.ReadUInt16();

            for (int i = 0; i < length; i++)
            {
                var f = new BanchoReplayFrame();
                f.ReadFromStream(r);
                ReplayFrames.Add(f);
            }

            Action = (ReplayAction)r.ReadByte();

            (CurrentScoreState = new BanchoScoreFrame()).ReadFromStream(r);
        }