strictly necessary handlers

This commit is contained in:
rfi
2024-02-20 23:47:02 +07:00
parent 3dc95a1044
commit 11263bd61e
12 changed files with 217 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
using BLHX.Server.Common.Database;
using BLHX.Server.Common.Proto;
using BLHX.Server.Common.Proto.p11;
using BLHX.Server.Common.Utils;
using BLHX.Server.Game.Handlers;
using ProtoBuf;
using System.Buffers.Binary;
using System.Net;
@@ -117,6 +117,13 @@ namespace BLHX.Server.Game
ns.Write(sendBuf);
}
public void InitClientData()
{
this.NotifyPlayerData();
this.NotifyStatisticsInit();
this.NotifyShipData();
}
public void SendHttpResponse(string rsp, string type = "text/plain")
{
tcpClient.GetStream().Write(Encoding.UTF8.GetBytes(