2021-12-06 02:49:27 +03:00
|
|
|
|
using System;
|
2022-08-13 08:34:20 +03:00
|
|
|
|
using System.Collections.Generic;
|
2021-12-06 02:49:27 +03:00
|
|
|
|
using BlueWest.Tools;
|
|
|
|
|
using BlueWest.Core.Threading;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace BlueWest.Core
|
|
|
|
|
{
|
|
|
|
|
public sealed class BlueProgram
|
|
|
|
|
{
|
|
|
|
|
|
2022-08-13 08:34:20 +03:00
|
|
|
|
private static readonly Dictionary<Type, List<EventListenerBase>> Events = new(10000);
|
2021-12-06 02:49:27 +03:00
|
|
|
|
|
|
|
|
|
private static readonly EventManager EventManager = new(Events);
|
|
|
|
|
|
|
|
|
|
private readonly BlueConsole _blueConsole = new BlueConsole();
|
|
|
|
|
|
|
|
|
|
public void Run()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
new ThreadServer(EventManager);
|
|
|
|
|
BlueWestConsoleBanner();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void BlueWestConsoleBanner()
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine(" |------------------------------«");
|
|
|
|
|
Console.WriteLine(" » Blue West «");
|
|
|
|
|
Console.WriteLine(" |------------------------------«\n");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|