重构network库(mvp版本)搭建基础设施和核心接口

定义ITransport/ISerializer/INetworkMessage接口
NetworkIdentity组件
基础事件定义
This commit is contained in:
YHH
2025-08-13 13:07:40 +08:00
parent 25136349ff
commit 62f250b43c
97 changed files with 1877 additions and 16607 deletions

View File

@@ -18,16 +18,10 @@ module.exports = {
coverageReporters: ['text', 'lcov', 'html'],
coverageThreshold: {
global: {
branches: 60,
branches: 70,
functions: 70,
lines: 70,
statements: 70
},
'./src/decorators/': {
branches: 70,
functions: 80,
lines: 80,
statements: 80
}
},
verbose: true,
@@ -39,6 +33,7 @@ module.exports = {
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
'^@esengine/ecs-framework$': '<rootDir>/../core/src/index.ts',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
setupFilesAfterEnv: ['<rootDir>/tests/setup.ts'],
@@ -49,5 +44,8 @@ module.exports = {
'<rootDir>/bin/',
'<rootDir>/dist/',
'<rootDir>/node_modules/'
],
transformIgnorePatterns: [
'node_modules/(?!(.*\\.mjs$|@esengine))'
]
};