Skip to content

Profectus / game/requirements / createCostRequirement

Function: createCostRequirement() ​

createCostRequirement<T>(optionsFunc): object & object

Lazily creates a requirement with the given options, that is based on meeting an amount of a resource.

Type Parameters ​

• T extends CostRequirementOptions

Parameters ​

optionsFunc ​

() => T

Cost requirement options.

Returns ​

object & object

Defined in ​

profectus/src/game/requirements.tsx:124