mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-12 20:54:34 +01:00
27 lines
866 B
C#
27 lines
866 B
C#
using Common.Resources.Proto;
|
|
using Common;
|
|
using System.Net.NetworkInformation;
|
|
using PemukulPaku.Gameserver;
|
|
|
|
namespace PemukulPaku
|
|
{
|
|
class Program
|
|
{
|
|
public static void Main()
|
|
{
|
|
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();
|
|
|
|
GetPlayerTokenRsp getPlayerTokenRsp = new()
|
|
{
|
|
Msg = "Hello!"
|
|
};
|
|
|
|
new Thread(HttpServer.Program.Main).Start();
|
|
_ = Server.GetInstance();
|
|
|
|
Console.Read();
|
|
}
|
|
}
|
|
} |