1
This commit is contained in:
@@ -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; }
|
||||
|
Reference in New Issue
Block a user