This commit is contained in:
陈思海 2025-03-24 13:17:26 +08:00
parent ad8b67acb4
commit 9893321815
3 changed files with 7 additions and 8 deletions

View File

@ -1,4 +1,4 @@
using AlicizaX.Runtime;
using AlicizaX;
using Cysharp.Threading.Tasks;
using Fantasy.Network;
using Fantasy.Network.Interface;

View File

@ -1,4 +1,4 @@
using AlicizaX.Runtime;
using AlicizaX;
using Cysharp.Threading.Tasks;
using Fantasy.Network;
using Fantasy.Network.Interface;
@ -21,7 +21,7 @@ namespace AlicizaX.Network.Runtime
_networkModule = ModuleSystem.RegisterModule<INetworkModule>(typeof(NetworkModule));
if (_networkModule == null)
{
Log.Fatal("Network Manager is invalid.");
Log.Error("Network Manager is invalid.");
return;
}

View File

@ -1,10 +1,9 @@
using System.Reflection;
using AlicizaX.Runtime;
using AlicizaX;
using Cysharp.Threading.Tasks;
using Fantasy;
using Fantasy.Network;
using Fantasy.Network.Interface;
using Log = AlicizaX.Runtime.Log;
namespace AlicizaX.Network.Runtime
{
@ -69,19 +68,19 @@ namespace AlicizaX.Network.Runtime
{
_connectState = EConnectState.Connect;
_session.AddComponent<SessionHeartbeatComponent>().Start(_heartInterval);
Log.Debug("Connect Success");
Log.Info("Connect Success");
}
private void OnConnectFail()
{
_connectState = EConnectState.None;
Log.Debug("Connect Fail");
Log.Info("Connect Fail");
}
private void OnConnectDisconnect()
{
_connectState = EConnectState.Disconnect;
Log.Debug("Disconnect");
Log.Info("Disconnect");
}
}
}