screep/init.js

17 lines
392 B
JavaScript
Raw Normal View History

2020-10-18 22:00:22 +08:00
module.exports = {
2020-10-20 17:09:06 +08:00
init() {
2020-10-23 20:55:20 +08:00
if (!Memory.Task) {
Memory.Task = {}
};
Memory.Task.HighPorioty = [];
Memory.Task.LowPorioty = [];
//WorkingTarget是被跟踪物可以是一个structure、energy、constructionSite也可以是一个creep
if (!Memory.WorkingTarget) {
2020-10-24 15:24:24 +08:00
Memory.WorkingTarget = {}
2020-10-23 20:55:20 +08:00
};
2020-10-18 22:00:22 +08:00
}
2020-10-20 17:09:06 +08:00
}