Files
2025-01-25 04:38:09 +08:00

50 lines
1.4 KiB
C#

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_ResHookSetInfo( MSG_Hook.ResHookSetInfo result )
{
}
public void GS2U_ResOfflineHookResult( MSG_Hook.ResOfflineHookResult result )
{
}
public void GS2U_ResStartSitDown( MSG_Hook.ResStartSitDown result )
{
}
public void GS2U_ResSyncExpAdd( MSG_Hook.ResSyncExpAdd result )
{
}
public void GS2U_ResEndSitDown( MSG_Hook.ResEndSitDown result )
{
}
public void GS2U_ResExpRateChange(MSG_Hook.ResExpRateChange result)
{
}
public void GS2U_ResLeaderSitDown(MSG_Hook.ResLeaderSitDown result)
{
var player = GameCenter.GameSceneSystem.FindEntity<RemotePlayer>((ulong)result.roleId);
if(player != null)
{
if(result.isTrue)
{
player.Action_ChuanDaoSitDown();
}
else
{
player.Stop_Action(false);
}
}
}
public void GS2U_ResOfflineHookFindTime(MSG_Hook.ResOfflineHookFindTime result) { }
}
}