覆盖querysystem/eventbus/componentstorage测试

This commit is contained in:
YHH
2025-07-29 09:08:31 +08:00
parent 608f5030b2
commit 2f71785add
4 changed files with 1391 additions and 1 deletions

View File

@@ -75,6 +75,14 @@ export class ComponentRegistry {
public static getAllRegisteredTypes(): Map<Function, number> {
return new Map(this.componentTypes);
}
/**
* 重置注册表(用于测试)
*/
public static reset(): void {
this.componentTypes.clear();
this.nextBitIndex = 0;
}
}
/**