📜  screeps 清除死 screeps 的内存 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:57.340000             🧑  作者: Mango

代码示例1
for(var i in Memory.creeps) {
    if(!Game.creeps[i]) {
        delete Memory.creeps[i];
    }
}