private void setFrame_btn_Click(object sender, EventArgs e) { if (entities.First.Value == null) return; Position newPos = new Position(entities.First.Value.Data.Box.X, entities.First.Value.Data.Box.Y); entities.First.Value.TimeFrames.Enqueue(new TimeFrame(newPos, this.ThoughtsTexbox.Text)); PlayOrder.Enqueue(entities.First.Value); this.ThoughtsTexbox.Text = ""; }
public TimeFrame(Position pos, string thought) { Pos = pos; Thought = thought; }