screep/init.js

15 lines
422 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* eslint-disable no-undef */
module.exports = {
init() {
if (!Memory.Task) {
Memory.Task = {};
}
Memory.Task.HighPorioty = [];
Memory.Task.LowPorioty = [];
// WorkingTarget是被跟踪物可以是一个structure、energy、constructionSite也可以是一个creep
if (!Memory.WorkingTarget) {
Memory.WorkingTarget = {};
}
},
};