Files
esengine/packages/network-shared/src/index.ts

43 lines
742 B
TypeScript
Raw Normal View History

2025-08-12 09:39:07 +08:00
/**
* 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
};