Framework.Net网络管理
This commit is contained in:
25
client/assets/scripts/Framework/Net/NetEvent.ts
Normal file
25
client/assets/scripts/Framework/Net/NetEvent.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* 网络事件定义
|
||||
*/
|
||||
export enum NetEvent {
|
||||
/** 连接成功 */
|
||||
Connected = "net_connected",
|
||||
|
||||
/** 连接断开 */
|
||||
Disconnected = "net_disconnected",
|
||||
|
||||
/** 正在重连 */
|
||||
Reconnecting = "net_reconnecting",
|
||||
|
||||
/** 重连成功 */
|
||||
ReconnectSuccess = "net_reconnect_success",
|
||||
|
||||
/** 重连失败 */
|
||||
ReconnectFailed = "net_reconnect_failed",
|
||||
|
||||
/** 网络错误 */
|
||||
Error = "net_error",
|
||||
|
||||
/** 连接超时 */
|
||||
Timeout = "net_timeout"
|
||||
}
|
||||
Reference in New Issue
Block a user