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; }
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]); }