移除过时类并标记组件和实体的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,6 +1,6 @@
/**
* 可更新接口
* 当添加到组件时只要组件和实体被启用就会在每帧调用update方法
* @deprecated 不符合ECS架构规范建议使用EntitySystem来处理更新逻辑而非在组件中实现
*/
export interface IUpdatable {
enabled: boolean;

View File

@@ -49,6 +49,7 @@ export class SceneComponent {
/**
* 每帧更新
* @deprecated 不符合ECS架构规范建议使用EntitySystem来处理场景级更新逻辑
*/
public update(): void {
}