Files
Main/Assets/Code/Logic/_NetMessage/Handlers/HandleMsgResult_MSG_heart.cs

36 lines
973 B
C#
Raw Normal View History

2025-01-25 04:38:09 +08:00
using ProtoBuf;
using Thousandto.Plugins.Common;
using Thousandto.Code.Center;
using Thousandto.Cfg.Data;
using Thousandto.Core.Base;
namespace Thousandto.Code.Logic.Network
{
/// <summary>
/// 实现消息的回调方法
/// </summary>
public partial class HandleMsgResult : IHandleMsgResult
{
//心跳返回
public void GS2U_ResHeart( MSG_heart.ResHeart result )
{
GameCenter.HeartSystem.OnHearMsgReceive(result);
}
//断线重连需要用到的sign值每10分钟刷新这个值随后重连用这个值
public void GS2U_ResReconnectSign( MSG_heart.ResReconnectSign result )
{
GameCenter.ReconnectSystem.GS2U_ResReconnectSign(result);
}
//断线重连失败
public void GS2U_ResHeartFailed( MSG_heart.ResHeartFailed result )
{
GameCenter.ReconnectSystem.GS2U_ResHeartFailed(result);
}
}
}