2024-11-04 13:09:46 +08:00
|
|
|
interface CreepMemory {
|
2024-11-03 22:04:05 +08:00
|
|
|
role: string,
|
2024-11-04 16:10:50 +08:00
|
|
|
working?: boolean,
|
|
|
|
source?:string,
|
|
|
|
workTarget?: Id<Structure>,
|
2024-11-04 13:09:46 +08:00
|
|
|
[property: string]: any,
|
2024-11-03 22:04:05 +08:00
|
|
|
}
|
2024-11-04 13:09:46 +08:00
|
|
|
|
2024-11-04 16:10:50 +08:00
|
|
|
interface MemoryStructure{
|
|
|
|
id: Id<Structure>,
|
|
|
|
structureType: string,
|
|
|
|
roomName: string
|
|
|
|
creep?: Id<Creep>,
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Memory{
|
|
|
|
structures?: MemoryStructure[]
|
|
|
|
}
|
|
|
|
|
2024-11-04 13:09:46 +08:00
|
|
|
|
|
|
|
declare type Part = WORK | MOVE | CARRY | HEAL | ATTACK | RANGED_ATTACK | TOUGH | CLAIM;
|