コード例 #1
0
        public MovieAction(int firstFrame, int lastFrame, TasMovie movie)
        {
            FirstFrame = firstFrame;
            LastFrame = lastFrame;
            oldLog = new List<string>(length);

            undoLength = Math.Min(lastFrame + 1, movie.InputLogLength) - firstFrame;
            for (int i = 0; i < undoLength; i++)
                oldLog.Add(movie.GetLogEntries()[FirstFrame + i]);

            bindMarkers = movie.BindMarkersToInput;
        }
コード例 #2
0
ファイル: TasMovie.History.cs プロジェクト: henke37/BizHawk
		public void SetRedoLog(TasMovie movie)
		{
			redoLength = Math.Min(LastFrame + 1, movie.InputLogLength) - FirstFrame;
			newLog = new List<string>();
			for (int i = 0; i < redoLength; i++)
				newLog.Add(movie.GetLogEntries()[FirstFrame + i]);
		}