trim 剔除已销毁的角色
trim
类型: MethodDeclaration
定义位置: filter.ts
描述
剔除已销毁的角色
返回值
类型: void
源代码
位置: 第 184 行
private trim(): void {
const actors = this.actorList
const map = this.actorColorMap
let i = actors.length
while (--i >= 0) {
if (actors[i].destroyed) {
map.delete(actors[i])
actors.splice(i, 1)
}
}
}
文档生成时间:2025/7/7 12:07:06