Example #1
0
        public ReplayData SaveToReplayData()
        {
            ReplayData rdata = new ReplayData();

            rdata.EndFrameId = m_End_FrameId;
            foreach (var frame in  m_List_Frame)
            {
                rdata.ListFrame.Add(frame);
            }
            rdata.StartGame_Data = m_StartGame_Data;
            return(rdata);
        }
Example #2
0
        public void LoadReplayData(ReplayData replayData)
        {
            m_List_Frame.Clear();

            m_End_FrameId = replayData.EndFrameId;
            for (int i = 0; i < replayData.ListFrame.Count; ++i)
            {
                Frame_Data tmpfm = replayData.ListFrame[i];
                m_List_Frame.Add(tmpfm);
            }
            m_StartGame_Data = replayData.StartGame_Data;
        }