-
Notifications
You must be signed in to change notification settings - Fork 0
Creating the Application
Terminal applications are really easy to develop and even though you can build one using .NET command line tools it is a lot easier using Visual Studio or any other IDE of your choice.
All classes shown in the sections below belong to the Lmpessoa.Terminal namespace. You might want to import it globally.
The first step in making a Terminal application is to instantiate the Application class. That's as simple as this:
Application.Run(new TestMap());That's it. No complicated parameters but also no interpreting any arguments that may be passed by when calling the application. I recommend doing it on the Program.cs file because it allows for a cleaner code. The only argument passed to the Run() method is the initial map to be displayed for the application
Note that being this simples does not mean that the application cannot be customised, but there are currently very few options if you need them. It will also require that you slightly change how the application is initialised but it is really simple after that:
Application app = new(new TestMap());
// call your customisation methods here
app.Run();