单一数据源 + 懒加载缓存

This commit is contained in:
YHH
2025-09-30 23:37:47 +08:00
parent 952247def0
commit 632864b361
4 changed files with 116 additions and 95 deletions

View File

@@ -266,7 +266,7 @@ describe('Entity - 组件缓存优化测试', () => {
expect(debugInfo.componentCount).toBe(2);
expect(debugInfo.componentTypes).toContain('TestPositionComponent');
expect(debugInfo.componentTypes).toContain('TestHealthComponent');
expect(debugInfo.indexMappingSize).toBe(2);
expect(debugInfo.cacheBuilt).toBe(true);
});
});
});