移除过时类并标记组件和实体的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

@@ -1,4 +1,5 @@
import type { IComponent } from '../Types';
import type { Entity } from './Entity';
/**
* 游戏组件基类
@@ -146,14 +147,10 @@ export abstract class Component implements IComponent {
/**
* 更新组件
*
* 每帧调用,用于更新组件的逻辑
* 子类应该重写此方法来实现具体的更新逻辑。
*
* @deprecated 不符合ECS架构规范建议使用EntitySystem来处理更新逻辑
*/
public update(): void {
}
}
// 避免循环引用在文件末尾导入Entity
import type { Entity } from './Entity';
}