at least you can end the stage

This commit is contained in:
rafi1212122
2023-05-29 06:55:15 +07:00
parent ad02e1785a
commit 761f9c130d
24 changed files with 1491 additions and 51 deletions

View File

@@ -1,7 +1,8 @@
using Common.Resources.Proto;
using Common;
using Common;
using System.Net.NetworkInformation;
using PemukulPaku.GameServer;
using Common.Database;
using PemukulPaku.GameServer.Game;
namespace PemukulPaku
{
@@ -9,19 +10,19 @@ namespace PemukulPaku
{
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();
GetPlayerTokenRsp getPlayerTokenRsp = new()
{
Msg = "Hello!"
};
new Thread(HttpServer.Program.Main).Start();
PacketFactory.LoadPacketHandlers();
new Thread(HttpServer.Program.Main).Start();
_ = Server.GetInstance();
Player Player = new(User.FromName("test"));
Console.Read();
}
}