修复component关系管理器add问题

This commit is contained in:
yhh
2020-11-24 15:27:49 +08:00
parent 5c0ee92d85
commit 73b484d894
4 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,8 @@
这是一套ecs游戏框架里面包含ECS框架用于管理场景实体一些常用2D碰撞检测及A*寻路
## 交流群
点击链接加入群聊【ecs游戏框架交流】https://jq.qq.com/?_wv=1027&k=29w1Nud6
## 版本计划功能
- [x] 简易ECS框架
@@ -30,7 +33,6 @@
- [x] 图形帮助
- [x] 场景过渡
- [x] 场景渲染器
- [x] A*寻路(AStar)
- [x] 常用碰撞检测
- [x] 数学库
- [x] 矩形类Rectangle
@@ -46,8 +48,6 @@
- [x] ShapeCollision 多种形状检测
- [x] RealtimeCollisions 实时碰撞检测
- [x] SpatialHash 网格检测
- [x] BreadthFirst 寻路算法
- [x] Dijkstra 寻路算法
- [x] 事件处理器
## 关于用ecs框架typescript/javascript

View File

@@ -2170,7 +2170,7 @@ var es;
}
ComponentTypeManager.add = function (type) {
if (!this._componentTypesMask.has(type))
this._componentTypesMask[type] = this._componentTypesMask.size;
this._componentTypesMask.set(type, this._componentTypesMask.size);
};
ComponentTypeManager.getIndexFor = function (type) {
var v = -1;

File diff suppressed because one or more lines are too long

View File

@@ -4,7 +4,7 @@ module es {
public static add(type) {
if (!this._componentTypesMask.has(type))
this._componentTypesMask[type] = this._componentTypesMask.size;
this._componentTypesMask.set(type, this._componentTypesMask.size);
}
public static getIndexFor(type) {