优化matcher内部实现改为querysystem

完善type类型
更新文档
This commit is contained in:
YHH
2025-07-31 11:56:04 +08:00
parent b7d17fb16d
commit 6ea366cfed
39 changed files with 2054 additions and 1898 deletions

View File

@@ -146,7 +146,7 @@ componentIndex.setIndexType(TemporaryComponent, 'bitmap'); // 临时组件
componentIndex.setIndexType(StateComponent, 'bitmap'); // 状态组件变化频繁
```
#### 📊 选择决策表
#### 选择决策表
| 考虑因素 | 哈希索引 (Hash) | 位图索引 (Bitmap) |
|---------|----------------|-------------------|
@@ -170,7 +170,7 @@ componentIndex.setIndexType(StateComponent, 'bitmap'); // 状态组件变
- 需要频繁批量操作? → 选择 **位图索引**
- 内存使用很重要? → 选择 **哈希索引**
#### 🎮 实际游戏中的选择示例
#### 实际游戏中的选择示例
**射击游戏:**
```typescript