profectus-docs/assets/api_game_requirements_interfaces_Requirement.md.THoJEnb0.lean.js

2 lines
9.3 KiB
JavaScript
Raw Permalink Normal View History

import{_ as a,c as r,a0 as t,o as i}from"./chunks/framework.P9qPzDnn.js";const m=JSON.parse('{"title":"Interface: Requirement","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/game/requirements/interfaces/Requirement.md","filePath":"api/game/requirements/interfaces/Requirement.md","lastUpdated":null}'),n={name:"api/game/requirements/interfaces/Requirement.md"};function o(s,e,l,c,d,u){return i(),r("div",null,e[0]||(e[0]=[t('<p><a href="./../../../">Profectus</a> / <a href="./../">game/requirements</a> / Requirement</p><h1 id="interface-requirement" tabindex="-1">Interface: Requirement <a class="header-anchor" href="#interface-requirement" aria-label="Permalink to &quot;Interface: Requirement&quot;"></a></h1><p>An object that can be used to describe a requirement to perform some purchase or other action.</p><h2 id="see" tabindex="-1">See <a class="header-anchor" href="#see" aria-label="Permalink to &quot;See&quot;"></a></h2><p><a href="./../functions/createCostRequirement">createCostRequirement</a></p><h2 id="extended-by" tabindex="-1">Extended by <a class="header-anchor" href="#extended-by" aria-label="Permalink to &quot;Extended by&quot;"></a></h2><ul><li><a href="./CostRequirement"><code>CostRequirement</code></a></li></ul><h2 id="properties" tabindex="-1">Properties <a class="header-anchor" href="#properties" aria-label="Permalink to &quot;Properties&quot;"></a></h2><h3 id="canmaximize" tabindex="-1">canMaximize? <a class="header-anchor" href="#canmaximize" aria-label="Permalink to &quot;canMaximize?&quot;"></a></h3><blockquote><p><code>optional</code> <strong>canMaximize</strong>: <a href="https://vuejs.org/api/utility-types.html#mayberef" target="_blank" rel="noreferrer"><code>MaybeRef</code></a>&lt;<code>boolean</code>&gt;</p></blockquote><p>Whether or not this requirement can have multiple levels of requirements that can be met at once. Requirement is assumed to not have multiple levels if this property not present.</p><h4 id="defined-in" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/game/requirements.tsx#L40" target="_blank" rel="noreferrer">profectus/src/game/requirements.tsx:40</a></p><hr><h3 id="display" tabindex="-1">display()? <a class="header-anchor" href="#display" aria-label="Permalink to &quot;display()?&quot;"></a></h3><blockquote><p><code>optional</code> <strong>display</strong>: (<code>amount</code>?) =&gt; <a href="./../../../util/vue/type-aliases/Renderable"><code>Renderable</code></a></p></blockquote><p>The display for this specific requirement. Required if <a href="./Requirement#visibility">visibility</a> can be <a href="./../../../features/feature/enumerations/Visibility#visible">Visibility.Visible</a>.</p><h4 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-label="Permalink to &quot;Parameters&quot;"></a></h4><h5 id="amount" tabindex="-1">amount? <a class="header-anchor" href="#amount" aria-label="Permalink to &quot;amount?&quot;"></a></h5><p><a href="./../../../lib/break_eternity/type-aliases/DecimalSource"><code>DecimalSource</code></a></p><h4 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-label="Permalink to &quot;Returns&quot;"></a></h4><p><a href="./../../../util/vue/type-aliases/Renderable"><code>Renderable</code></a></p><h4 id="defined-in-1" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-1" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/game/requirements.tsx#L24" target="_blank" rel="noreferrer">profectus/src/game/requirements.tsx:24</a></p><hr><h3 id="partialdisplay" tabindex="-1">partialDisplay()? <a class="header-anchor" href="#partialdisplay" aria-label="Permalink to &quot;partialDisplay()?&quot;"></a></h3><blockquote><p><code>optional</code> <strong>partialDisplay</