public ViewCombat(GameSystem game, ConsoleRenderSystem renderer, Combat combat, Action onFinishCallback) : base(game, renderer) { Combat = combat; Combat.OnAction += OnCombatAction; OnFinish = onFinishCallback; Init(); }
private void InitConsole() { System.Console.CursorVisible = false; ConsoleOut = System.Console.Out; Console = new SystemConsole(); Renderer = new ConsoleRenderSystem(Console, Console.WindowWidth, Console.WindowHeight); Console.Clear(); }
public void Setup() { Console9x9 = new FakeConsole(9, 9); Renderer9x9 = new ConsoleRenderSystem(Console9x9, 9, 9); }