Changes to esbuild and adds initial creation of creaps

This commit is contained in:
2025-07-05 22:34:23 -03:00
parent d72f3ec851
commit 06d4eff5c9
9 changed files with 669 additions and 33 deletions

31
src/types/creeps.ts Normal file
View 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>;