移除过时类并标记组件和实体的update为过时方法

This commit is contained in:
YHH
2025-09-26 10:09:23 +08:00
parent 9603c6423b
commit cf9ea495d0
14 changed files with 19 additions and 1810 deletions

View File

@@ -220,7 +220,7 @@ export class EntityList {
* @param componentType 组件类型
* @returns 找到的所有实体数组
*/
public findEntitiesWithComponent<T extends Component>(componentType: new (...args: unknown[]) => T): Entity[] {
public findEntitiesWithComponent<T extends Component>(componentType: new (...args: any[]) => T): Entity[] {
const result: Entity[] = [];
for (const entity of this.buffer) {