更改命名空间linq为es

This commit is contained in:
yhh
2021-03-29 15:28:18 +08:00
parent 8b5bc444f1
commit 6b2c18ad75
21 changed files with 80 additions and 127 deletions

View File

@@ -77,7 +77,7 @@ module es {
let cell = this.cellAtPosition(x, y);
Insist.isNotNull(cell, `从不存在碰撞器的单元格中移除碰撞器: [${collider}]`);
if (cell != null)
new linq.List(cell).remove(collider);
new es.List(cell).remove(collider);
}
}
}
@@ -325,7 +325,7 @@ module es {
*/
public remove(obj: Collider) {
this._store.forEach(list => {
let linqList = new linq.List(list);
let linqList = new es.List(list);
if (linqList.contains(obj))
linqList.remove(obj);
})
@@ -379,7 +379,7 @@ module es {
let potential = cell[i];
// 管理我们已经处理过的碰撞器
if (new linq.List(this._checkedColliders).contains(potential))
if (new es.List(this._checkedColliders).contains(potential))
continue;
this._checkedColliders.push(potential);