public void FixedUpdate(ITimeline time) { cellEntryRenderArea.UpdateCursor(EntryPoint.Cursor.Effect, aligner.Rows().Skip(EntryPoint.Cursor.Row).FirstOrDefault(), EntryPoint.Cursor.Row, EntryPoint.Cursor.HeadInRow); cellEntryRenderArea.Update(time.DeltaTime.TotalSeconds); }
public TerminalEntry(CellAppender appender, CellRowAligner aligner, Func <int> spacing, Func <float> rowSize, int historyEntries = 40) { this.cursor = new Cursor(); if (appender == null) { throw new ArgumentNullException("appender"); } this.appender = appender; AddEntryRule(new EntryRule(ch => appender.Count < 100)); history = new CommandHistory(historyEntries); appender.OnCellAppend((sender, args) => { aligner.AlignToRows(appender.Cells(), spacing(), rowSize()); cursor.Update(aligner.Rows()); }); }