Changes to esbuild and adds initial creation of creaps
This commit is contained in:
31
src/types/creeps.ts
Normal file
31
src/types/creeps.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
export type RoleDefinition = {
|
||||
name: string;
|
||||
body: BodyPartConstant[];
|
||||
priority: number;
|
||||
}
|
||||
|
||||
|
||||
export const CreepRoles = {
|
||||
harvester: {
|
||||
name: "harvester",
|
||||
body: [WORK, CARRY, MOVE],
|
||||
priority: 1
|
||||
},
|
||||
upgrader: {
|
||||
name: "upgrader",
|
||||
body: [WORK, CARRY, MOVE],
|
||||
priority: 2
|
||||
},
|
||||
builder: {
|
||||
name: "builder",
|
||||
body: [WORK, CARRY, MOVE],
|
||||
priority: 3
|
||||
}
|
||||
} satisfies Record<string, RoleDefinition>;
|
||||
|
||||
|
||||
export type CreepRole = keyof typeof CreepRoles;
|
||||
|
||||
|
||||
|
||||
export type CreepRequisition = Record<CreepRole, number>;
|
||||
Reference in New Issue
Block a user