更新文档
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ componentIndex.setIndexType(PlayerComponent, 'hash'); // 玩家标记组
|
|||||||
|
|
||||||
**适用场景:**
|
**适用场景:**
|
||||||
- 组件频繁添加/删除
|
- 组件频繁添加/删除
|
||||||
- 实体数量适中(< 10000个)
|
- 实体数量适中(< 1000个)
|
||||||
- 需要批量操作
|
- 需要批量操作
|
||||||
|
|
||||||
**优势:**
|
**优势:**
|
||||||
|
|||||||
Reference in New Issue
Block a user