ascnet/AscNet/Program.cs

24 lines
746 B
C#
Raw Normal View History

using AscNet.GameServer;
using AscNet.Logging;
2023-10-06 13:29:27 +00:00
namespace AscNet
{
internal class Program
{
static void Main(string[] args)
{
// TODO: Add loglevel parsing from appsettings file
LoggerFactory.InitializeLogger(new Logger(typeof(Program), LogLevel.DEBUG, LogLevel.DEBUG));
LoggerFactory.Logger.Info("Starting...");
2023-10-14 15:01:49 +00:00
#if DEBUG
if (Common.Common.config.VerboseLevel < Common.VerboseLevel.Debug)
Common.Common.config.VerboseLevel = Common.VerboseLevel.Debug;
#endif
2023-10-10 09:56:08 +00:00
PacketFactory.LoadPacketHandlers();
Task.Run(Server.Instance.Start);
2023-10-06 13:29:27 +00:00
SDKServer.SDKServer.Main(args);
2023-10-18 14:45:13 +00:00
Common.Common.DumpTables();
2023-10-06 13:29:27 +00:00
}
}
}