style(core): 统一代码风格并强化命名规范

This commit is contained in:
YHH
2025-10-31 18:29:53 +08:00
parent 6778ccace4
commit 3e037f4ae0
106 changed files with 2054 additions and 1967 deletions

View File

@@ -27,7 +27,6 @@ describe('Component - 组件基类测试', () => {
let scene: Scene;
beforeEach(() => {
Component._idGenerator = 0;
component = new TestComponent();
scene = new Scene();
entity = scene.createEntity('TestEntity');
@@ -51,7 +50,7 @@ describe('Component - 组件基类测试', () => {
});
test('组件ID应该递增分配', () => {
const startId = Component._idGenerator;
const startId = Component.nextComponentId;
const component1 = new TestComponent();
const component2 = new TestComponent();