This commit is contained in:
CortexCore
2024-03-31 23:31:00 +08:00
parent e179d2eb53
commit b7b89ee71a
641 changed files with 31286 additions and 22134 deletions

View File

@@ -28,6 +28,7 @@ namespace BITKit
AllClientCommand=5,
Message=6,
Heartbeat=7,
Ping=8,
}
/// <summary>
/// 网络提供服务包括了基础网络服务e.g
@@ -43,6 +44,7 @@ namespace BITKit
/// </summary>
public interface INetProvider
{
/// <summary>
/// 向服务端发送指令
/// </summary>
@@ -138,6 +140,14 @@ namespace BITKit
/// </summary>
public interface INetServer
{
/// <summary>
/// 源物体,用于通过代理直接访问
/// </summary>
public object Source => this;
/// <summary>
/// 手动Tick
/// </summary>
public bool ManualTick { get; set; }
/// <summary>
/// 回调:当客户端连接时
/// </summary>
@@ -207,6 +217,11 @@ namespace BITKit
/// </summary>
public interface INetClient
{
/// <summary>
/// 源物体,用于通过代理直接访问
/// </summary>
public object Source => this;
//基本客户端回调
public event Action OnStartConnect;
public event Action OnConnected;
@@ -217,6 +232,10 @@ namespace BITKit
/// </summary>
bool IsConnected { get; }
/// <summary>
/// 手动Tick
/// </summary>
bool ManualTick { get; set; }
/// <summary>
/// 连接服务端的延迟
/// </summary>
int Ping { get; }