更新文档

This commit is contained in:
YHH
2025-08-14 18:45:24 +08:00
parent a5f0c8f6b5
commit 32092f992d
2 changed files with 2 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ class PositionComponent extends Component {
} }
} }
@ECSComponent('Velocity') @ECSComponent('VelocityComponent')
class VelocityComponent extends Component { class VelocityComponent extends Component {
public x: number = 0; public x: number = 0;
public y: number = 0; public y: number = 0;

View File

@@ -127,7 +127,7 @@ componentIndex.setIndexType(PlayerComponent, 'hash'); // 玩家标记组
**适用场景:** **适用场景:**
- 组件频繁添加/删除 - 组件频繁添加/删除
- 实体数量适中(< 10000个) - 实体数量适中(< 1000个
- 需要批量操作 - 需要批量操作
**优势:** **优势:**