Better Typing for Positions and Formats Code

This commit is contained in:
2025-07-14 23:07:44 -03:00
parent 230153403f
commit 952d274c53
14 changed files with 235 additions and 182 deletions

View File

@@ -1,4 +1,12 @@
export abstract class RoleHandler {
static destroy(creepMemory: CreepMemory, state: GameState): void {};
static run(creep: Creep, state: GameState): GameState {};
public static destroy(_creepMemory: CreepMemory, _state: GameState): void {
// Default implementation does nothing
// Subclasses should override this method
}
public static run(_creep: Creep, state: GameState): GameState {
// Default implementation returns state unchanged
// Subclasses should override this method
return state;
}
}