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);
        }

    }
}