modify
This commit is contained in:
parent
ad8b67acb4
commit
9893321815
@ -1,4 +1,4 @@
|
|||||||
using AlicizaX.Runtime;
|
using AlicizaX;
|
||||||
using Cysharp.Threading.Tasks;
|
using Cysharp.Threading.Tasks;
|
||||||
using Fantasy.Network;
|
using Fantasy.Network;
|
||||||
using Fantasy.Network.Interface;
|
using Fantasy.Network.Interface;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using AlicizaX.Runtime;
|
using AlicizaX;
|
||||||
using Cysharp.Threading.Tasks;
|
using Cysharp.Threading.Tasks;
|
||||||
using Fantasy.Network;
|
using Fantasy.Network;
|
||||||
using Fantasy.Network.Interface;
|
using Fantasy.Network.Interface;
|
||||||
@ -21,7 +21,7 @@ namespace AlicizaX.Network.Runtime
|
|||||||
_networkModule = ModuleSystem.RegisterModule<INetworkModule>(typeof(NetworkModule));
|
_networkModule = ModuleSystem.RegisterModule<INetworkModule>(typeof(NetworkModule));
|
||||||
if (_networkModule == null)
|
if (_networkModule == null)
|
||||||
{
|
{
|
||||||
Log.Fatal("Network Manager is invalid.");
|
Log.Error("Network Manager is invalid.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using AlicizaX.Runtime;
|
using AlicizaX;
|
||||||
using Cysharp.Threading.Tasks;
|
using Cysharp.Threading.Tasks;
|
||||||
using Fantasy;
|
using Fantasy;
|
||||||
using Fantasy.Network;
|
using Fantasy.Network;
|
||||||
using Fantasy.Network.Interface;
|
using Fantasy.Network.Interface;
|
||||||
using Log = AlicizaX.Runtime.Log;
|
|
||||||
|
|
||||||
namespace AlicizaX.Network.Runtime
|
namespace AlicizaX.Network.Runtime
|
||||||
{
|
{
|
||||||
@ -69,19 +68,19 @@ namespace AlicizaX.Network.Runtime
|
|||||||
{
|
{
|
||||||
_connectState = EConnectState.Connect;
|
_connectState = EConnectState.Connect;
|
||||||
_session.AddComponent<SessionHeartbeatComponent>().Start(_heartInterval);
|
_session.AddComponent<SessionHeartbeatComponent>().Start(_heartInterval);
|
||||||
Log.Debug("Connect Success");
|
Log.Info("Connect Success");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnConnectFail()
|
private void OnConnectFail()
|
||||||
{
|
{
|
||||||
_connectState = EConnectState.None;
|
_connectState = EConnectState.None;
|
||||||
Log.Debug("Connect Fail");
|
Log.Info("Connect Fail");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnConnectDisconnect()
|
private void OnConnectDisconnect()
|
||||||
{
|
{
|
||||||
_connectState = EConnectState.Disconnect;
|
_connectState = EConnectState.Disconnect;
|
||||||
Log.Debug("Disconnect");
|
Log.Info("Disconnect");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user