/// <summary> /// Initializes this instance. /// </summary> internal static void Initialize(string[] args) { ServiceCore.Initialize(2, new NetAccountMessageManager(), args); ServiceAccount.InitLogic(); ServiceAccount.InitGame(); ServiceAccount.InitNetwork(); ServiceAccount._titleTimer = new Timer(200); ServiceAccount._titleTimer.Elapsed += (sender, eventArgs) => Program.UpdateConsoleTitle(); ServiceAccount._titleTimer.Start(); ServiceAccount.Start(); }
private static void Main(string[] args) { Console.SetOut(new ConsoleOut()); Console.SetWindowSize(Program.Width, Program.Height); Core.Libs.Colorful.Console.WriteWithGradient(@" __________.__ .__ _________ __ .___.__ \______ \__|__ _|__| ________________ / _____// |_ __ __ __| _/|__| ____ | _/ \ \/ / |/ __ \_ __ \__ \ \_____ \\ __\ | \/ __ | | |/ _ \ | | \ |\ /| \ ___/| | \// __ \_/ \| | | | / /_/ | | ( <_> ) |____|_ /__| \_/ |__|\___ >__| (____ /_______ /|__| |____/\____ | |__|\____/ \/ \/ \/ \/ \/ ", Color.OrangeRed, Color.LimeGreen, 14); Console.ForegroundColor = ConsoleColor.White; Console.WriteLine(Environment.NewLine); ServiceAccount.Initialize(args); Console.WriteLine(Assembly.GetExecutingAssembly().GetName().Name + " is now starting..." + Environment.NewLine); CmdHandler.Initialize(); }