screep/init.js

15 lines
378 B
JavaScript
Raw Normal View History

2020-10-26 16:15:52 +08:00
/* eslint-disable no-undef */
2020-10-18 22:00:22 +08:00
module.exports = {
2020-10-26 16:15:52 +08:00
init() {
if (!Memory.Task) {
Memory.Task = {};
2020-10-18 22:00:22 +08:00
}
2020-10-26 16:15:52 +08:00
Memory.Task.HighPorioty = [];
Memory.Task.LowPorioty = [];
// WorkingTarget是被跟踪物可以是一个structure、energy、constructionSite也可以是一个creep
if (!Memory.WorkingTarget) {
Memory.WorkingTarget = {};
}
},
};