screepCode/src/index.d.ts

21 lines
418 B
TypeScript
Raw Normal View History

2024-11-04 13:09:46 +08:00
interface CreepMemory {
role: string,
working?: boolean,
source?:string,
workTarget?: Id<Structure>,
2024-11-04 13:09:46 +08:00
[property: string]: any,
}
2024-11-04 13:09:46 +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;