forked from dfmjndm/PemukulPaku
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathProgram.cs
33 lines (28 loc) · 1.09 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using Common;
using System.Net.NetworkInformation;
using PemukulPaku.GameServer;
using Common.Database;
using PemukulPaku.GameServer.Game;
using PemukulPaku.GameServer.Commands;
using Common.Utils.ExcelReader;
using Newtonsoft.Json;
namespace PemukulPaku
{
class Program
{
public static void Main()
{
#if DEBUG
Global.config.VerboseLevel = VerboseLevel.Debug;
#endif
Global.c.Log("Starting...");
Global.config.Gameserver.Host = NetworkInterface.GetAllNetworkInterfaces().Where(i => i.NetworkInterfaceType != NetworkInterfaceType.Loopback && i.OperationalStatus == OperationalStatus.Up).First().GetIPProperties().UnicastAddresses.Where(a => a.Address.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork).First().Address.ToString();
CommandFactory.LoadCommandHandlers();
PacketFactory.LoadPacketHandlers();
new Thread(HttpServer.Program.Main).Start();
_ = Server.GetInstance();
Player Player = new(User.FromName("test"));
ReadLine.GetInstance().Start();
}
}
}