1 line
2.3 KiB
JavaScript
1 line
2.3 KiB
JavaScript
import{_ as t,c as a,a0 as r,o}from"./chunks/framework.P9qPzDnn.js";const l=JSON.parse('{"title":"Function: createCostRequirement()","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/game/requirements/functions/createCostRequirement.md","filePath":"api/game/requirements/functions/createCostRequirement.md","lastUpdated":null}'),n={name:"api/game/requirements/functions/createCostRequirement.md"};function s(i,e,c,u,m,d){return o(),a("div",null,e[0]||(e[0]=[r('<p><a href="./../../../">Profectus</a> / <a href="./../">game/requirements</a> / createCostRequirement</p><h1 id="function-createcostrequirement" tabindex="-1">Function: createCostRequirement() <a class="header-anchor" href="#function-createcostrequirement" aria-label="Permalink to "Function: createCostRequirement()""></a></h1><blockquote><p><strong>createCostRequirement</strong><<code>T</code>>(<code>optionsFunc</code>): <code>object</code> & <code>object</code></p></blockquote><p>Lazily creates a requirement with the given options, that is based on meeting an amount of a resource.</p><h2 id="type-parameters" tabindex="-1">Type Parameters <a class="header-anchor" href="#type-parameters" aria-label="Permalink to "Type Parameters""></a></h2><p>• <strong>T</strong> <em>extends</em> <a href="./../interfaces/CostRequirementOptions"><code>CostRequirementOptions</code></a></p><h2 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-label="Permalink to "Parameters""></a></h2><h3 id="optionsfunc" tabindex="-1">optionsFunc <a class="header-anchor" href="#optionsfunc" aria-label="Permalink to "optionsFunc""></a></h3><p>() => <code>T</code></p><p>Cost requirement options.</p><h2 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-label="Permalink to "Returns""></a></h2><p><code>object</code> & <code>object</code></p><h2 id="defined-in" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in" aria-label="Permalink to "Defined in""></a></h2><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/game/requirements.tsx#L124" target="_blank" rel="noreferrer">profectus/src/game/requirements.tsx:124</a></p>',14)]))}const h=t(n,[["render",s]]);export{l as __pageData,h as default};
|