Skip to content

canHarvest beta ​

Function of @v12-engine/engine

ts
export declare function canHarvest(world: World, worker: Entity, source: Entity): boolean;

Whether a worker may gather from a resource: one of a kind it gathers (harvester.ids), and then as the game's canHarvest hook says