More refactoring.

This commit is contained in:
2025-02-11 13:18:34 -05:00
parent 2311019f4e
commit be989a233d
5 changed files with 12 additions and 14 deletions

View File

@ -11,11 +11,12 @@ namespace IngameScript
public bool Running { get; }
public int Step { get; set; }
private IMyDoor _door;
public bool DeployOpen { get; set; }
public bool LockOpen { get; set; }
public bool LockClosed { get; set; }
private IMyDoor _door;
public SequenceableDoor(
IMyDoor door,
MyIni ini,

View File

@ -16,13 +16,12 @@ namespace IngameScript
private IConsole _console;
private string _name;
private SortedDictionary<int, List<ISequenceable>> _sequence;
private SortedDictionary<int, List<ISequenceable>> _sequence = new SortedDictionary<int, List<ISequenceable>>();
public Sequencer(string name, IConsole console)
public Sequencer(IConsoleProgram program, string name)
{
_name = name;
_console = console;
_sequence = new SortedDictionary<int, List<ISequenceable>>();
_console = new PrefixedConsole(program.Console, _name);
}
public void AddBlock(ISequenceable block)