Initial Working Creep Handler

This commit is contained in:
2025-07-06 16:00:36 -03:00
parent 2a7b74542c
commit bb3f797fc3
8 changed files with 41 additions and 117 deletions

View File

@@ -1,6 +1,9 @@
import { HarvesterHandler, RoleHandler } from "roleHandlers";
export type RoleDefinition = {
name: string;
body: BodyPartConstant[];
handler: RoleHandler;
priority: number;
};
@@ -8,16 +11,19 @@ export const CreepRoles = {
harvester: {
name: "harvester",
body: [WORK, CARRY, MOVE],
handler: HarvesterHandler,
priority: 1
},
upgrader: {
name: "upgrader",
body: [WORK, CARRY, MOVE],
handler: HarvesterHandler,
priority: 2
},
builder: {
name: "builder",
body: [WORK, CARRY, MOVE],
handler: HarvesterHandler,
priority: 3
}
} satisfies Record<string, RoleDefinition>;