public static void Main() { var eventLoop = new EventLoop(); var consoleTravel = new ConsoleTravel(); eventLoop.Start += consoleTravel.Start; eventLoop.LeftHandler += consoleTravel.OnLeft; eventLoop.RightHandler += consoleTravel.OnRight; eventLoop.UpHandler += consoleTravel.OnUp; eventLoop.DownHandler += consoleTravel.OnDown; eventLoop.Run(); }
static public void Main() { var eventLoop = new EventLoop(); var consoleTravel = new ConsoleTravel(); eventLoop.Start += consoleTravel.Start; eventLoop.LeftHandler += consoleTravel.OnLeft; eventLoop.RightHandler += consoleTravel.OnRight; eventLoop.UpHandler += consoleTravel.OnUp; eventLoop.DownHandler += consoleTravel.OnDown; eventLoop.Run(); }