合理化程序集,服务器Logic无需共享的代码存放解决方案目录,无需走Unity目录

合理化程序集,服务器Logic无需共享的代码存放解决方案目录,无需走Unity目录
This commit is contained in:
ALEXTANG
2023-07-15 18:39:42 +08:00
parent d87653a9fb
commit d4f160d284
101 changed files with 390 additions and 451 deletions

View File

@@ -0,0 +1,18 @@
#if TENGINE_NET
using System;
using TEngine.Core.Network;
using TEngine.Core;
namespace TEngine.Logic
{
public class H_C2G_LoginRequestHandler : MessageRPC<H_C2G_LoginRequest,H_G2C_LoginResponse>
{
protected override async FTask Run(Session session, H_C2G_LoginRequest request, H_G2C_LoginResponse response, Action reply)
{
Log.Debug($"收到请求登录的消息 request:{request.ToJson()}");
response.Text = "登录成功";
await FTask.CompletedTask;
}
}
}
#endif