更新network库及core库优化

This commit is contained in:
YHH
2025-08-12 09:39:07 +08:00
parent c178e2fbcc
commit 9f76d37a82
117 changed files with 17988 additions and 4099 deletions

View File

@@ -0,0 +1,43 @@
/**
* ECS Framework Network Shared
*
* 共享的网络组件、装饰器和类型定义
*/
// 确保 reflect-metadata 被导入
import 'reflect-metadata';
// 类型定义
export * from './types';
// 装饰器
export * from './decorators';
// 核心类
export * from './core';
// 序列化工具
export * from './serialization';
// 协议编译器
export * from './protocol';
// 工具函数
export * from './utils';
// 版本信息
export const VERSION = '1.0.0';
// 默认配置
export const DEFAULT_NETWORK_CONFIG = {
port: 7777,
host: 'localhost',
maxConnections: 100,
syncRate: 20,
snapshotRate: 5,
compression: true,
encryption: false,
timeout: 30000,
maxReconnectAttempts: 3,
reconnectInterval: 5000
};