unlockRefusal beta
Function of @v12-engine/engine
ts
export declare function unlockRefusal(world: World, player: PlayerId, kind: 'unit' | 'upgrade', id: string, requires: string[] | undefined, level?: number): Message | undefined;Why a player may not make something as far as what it requires goes, or nothing: the finished buildings it requires, and then the requirement hook (see Requirement). For a unit or structure type, or a level of research