Eintoo/GameServer/Server/Hotfix/Outter/Chat/Handler/Inner/G2Chat_OfflineRequestHandler.cs
2025-04-22 15:31:25 +08:00

18 lines
620 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Fantasy;
using Fantasy.Async;
using Fantasy.Network.Interface;
namespace Hotfix;
public class G2Chat_OfflineRequestHandler : RouteRPC<ChatUnit,G2Chat_OfflineRequest,Chat2G_OfflineResponse>
{
protected override async FTask Run(ChatUnit chatUnit, G2Chat_OfflineRequest request, Chat2G_OfflineResponse response, Action reply)
{
Log.Debug($"chat 聊天服务器{chatUnit.GameName} 下线");
chatUnit.Dispose();
response.ErrorCode = GameErrorCode.Success;
ChatComponentHelper.RemoveChatUnit(chatUnit.Scene,chatUnit.RuntimeId);
await FTask.CompletedTask;
}
}