24 lines
614 B
JavaScript
24 lines
614 B
JavaScript
|
||
|
||
module.exports = {
|
||
init() {
|
||
// if (!Memory.Source) {
|
||
// Memory.Source = new Object();
|
||
// Memory.Source.Energy = [];
|
||
// }
|
||
// if (!Memory.Controller) {
|
||
// Memory.Controller = [];
|
||
// }
|
||
if (!Memory.Task) {
|
||
Memory.Task = {}
|
||
};
|
||
Memory.Task.HighPorioty = [];
|
||
Memory.Task.LowPorioty = [];
|
||
//WorkingTarget是被跟踪物,可以是一个structure、energy、constructionSite,也可以是一个creep
|
||
if (!Memory.WorkingTarget) {
|
||
Memory.WorkingTarget = []
|
||
};
|
||
}
|
||
}
|
||
|