Files
Main/Assets/Code/Logic/_NetMessage/Handlers/HandleMsgResult_MSG_Chat.cs
2025-01-25 04:38:09 +08:00

76 lines
2.7 KiB
C#
Raw Permalink 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 ProtoBuf;
using Thousandto.Plugins.Common;
using Thousandto.Code.Center;
namespace Thousandto.Code.Logic.Network
{
/// <summary>
/// 实现消息的回调方法 -- 聊天协议
/// </summary>
public partial class HandleMsgResult : IHandleMsgResult
{
public void GS2U_ChatReqCS(MSG_Chat.ChatReqCS result) { }
public void GS2U_ChatGetContentCS(MSG_Chat.ChatGetContentCS result)
{
}
//从服务器返回到客户端的聊天消息
public void GS2U_ChatResSC( MSG_Chat.ChatResSC result )
{
//UnityEngine.Debug.Log("接收消息GS2U_ChatResSC");
GameCenter.ChatSystem.CacheLocalLeavelMsg(result.info, null);
GameCenter.ChatSystem.GS2U_ChatResSC(result.info);
}
//个人信息提示
public void GS2U_PersonalNotice( MSG_Chat.PersonalNotice result )
{
GameCenter.ChatSystem.OnGS2U_PersonalNotice(result);
}
public void GS2U_ChatResLeaveMessageSC(MSG_Chat.ChatResLeaveMessageSC result)
{
//UnityEngine.Debug.Log("离线消息1");
GameCenter.ChatSystem.GS2U_ChatResLeaveMessageSC(result);
}
public void GS2U_ResWorldHistoryChatInfo(MSG_Chat.ResWorldHistoryChatInfo result)
{
GameCenter.ChatSystem.ResWorldHistoryChatInfo(result);
}
//语音数据返回
public void GS2U_ChatGetContentSC(MSG_Chat.ChatGetContentSC result)
{
GameCenter.ChatSystem.GS2U_ChatGetContentSC(result);
}
public void GS2U_ResAddChatRooM(MSG_Chat.ResAddChatRooM result) { }
public void GS2U_ResChatRoom(MSG_Chat.ResChatRoom result) { }
public void GS2U_ResExitChatRoom(MSG_Chat.ResExitChatRoom result) { }
public void GS2U_PersonalChatNotice(MSG_Chat.PersonalChatNotice result)
{
GameCenter.ChatSystem.GS2U_PersonalChatNotice(result);
GameCenter.ChatSystem.CacheLocalLeavelMsg(null, result, true);
}
public void GS2U_ResShareNotice(MSG_Chat.ResShareNotice result)
{
//GameCenter.ShareSystem.ResShareNotice(result);
}
public void GS2U_ResGetShareRewardResult(MSG_Chat.ResGetShareRewardResult result)
{
//GameCenter.ShareSystem.ResGetShareRewardResult(result);
}
public void GS2U_ResForbidWord(MSG_Chat.ResForbidWord result)
{
WordFilter.ResForbidWord(result);
}
public void GS2U_F2GameServerNotice(MSG_Chat.F2GameServerNotice result) { }
public void GS2U_P2GameServerNotice(MSG_Chat.P2GameServerNotice result) { }
public void GS2U_F2PServerNotice(MSG_Chat.F2PServerNotice result) { }
}
}