1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
import{_ as e,c as o,o as d,a as c}from"./app.54d5a277.js";const m='{"title":"Interface: BaseUpgrade","description":"","frontmatter":{},"headers":[{"level":2,"title":"Hierarchy","slug":"hierarchy"},{"level":2,"title":"Properties","slug":"properties"},{"level":3,"title":"[Component]","slug":"component"},{"level":3,"title":"[DefaultValue]","slug":"defaultvalue"},{"level":3,"title":"[PersistentState]","slug":"persistentstate"},{"level":3,"title":"bought","slug":"bought"},{"level":3,"title":"canPurchase","slug":"canpurchase"},{"level":3,"title":"id","slug":"id"},{"level":3,"title":"purchase","slug":"purchase"},{"level":3,"title":"type","slug":"type"},{"level":2,"title":"Methods","slug":"methods"},{"level":3,"title":"[GatherProps]","slug":"gatherprops"}],"relativePath":"api/interfaces/features/upgrades/upgrade.BaseUpgrade.md"}',t={},r=c('<h1 id="interface-baseupgrade" tabindex="-1">Interface: BaseUpgrade <a class="header-anchor" href="#interface-baseupgrade" aria-hidden="true">#</a></h1><p><a href="./../../../modules/features/upgrades/upgrade.html">features/upgrades/upgrade</a>.BaseUpgrade</p><h2 id="hierarchy" tabindex="-1">Hierarchy <a class="header-anchor" href="#hierarchy" aria-hidden="true">#</a></h2><ul><li><p><a href="./../../../modules/game/persistence.html#persistent"><code>Persistent</code></a><<code>boolean</code>></p><p>\u21B3 <strong><code>BaseUpgrade</code></strong></p></li></ul><h2 id="properties" tabindex="-1">Properties <a class="header-anchor" href="#properties" aria-hidden="true">#</a></h2><h3 id="component" tabindex="-1">[Component] <a class="header-anchor" href="#component" aria-hidden="true">#</a></h3><p>\u2022 <strong>[Component]</strong>: <code>DefineComponent</code><{ <code>bought</code>: { <code>required</code>: <code>true</code> = true; <code>type</code>: <code>PropType</code><<a href="./../../../modules/util/computed.html#processedcomputable"><code>ProcessedComputable</code></a><<code>boolean</code>>> } ; <code>canPurchase</code>: { <code>required</code>: <code>true</code> = true; <code>type</code>: <code>PropType</code><<a href="./../../../modules/util/computed.html#processedcomputable"><code>ProcessedComputable</code></a><<code>boolean</code>>> } ; <code>classes</code>: <code>PropType</code><<a href="./../../../modules/util/computed.html#processedcomputable"><code>ProcessedComputable</code></a><<code>Record</code><<code>string</code>, <code>boolean</code>>>> ; <code>cost</code>: <code>PropType</code><<a href="./../../../modules/util/computed.html#processedcomputable"><code>ProcessedComputable</code></a><<a href="./../../../modules/lib/break_eternity.html#decimalsource"><code>DecimalSource</code></a>>> ; <code>display</code>: { <code>required</code>: <code>true</code> = true; <code>type</code>: <code>PropType</code><<a href="./../../../modules/util/computed.html#processedcomputable"><code>ProcessedComputable</code></a><<code>undefined</code> | <a href="./../../../modules/features/feature.html#coercablecomponent"><code>CoercableComponent</code></a> | { <code>description</code>: <a href="./../../../modules/features/feature.html#coercablecomponent"><code>CoercableComponent</code></a> ; <code>effectDisplay?</code>: <a href="./../../../modules/features/feature.html#coercablecomponent"><code>CoercableComponent</code></a> ; <code>title?</code>: <a href="./../../../modules/features/feature.html#coercablecomponent"><code>CoercableComponent</code></a> } | { <code>description</code>: <a href="./../../../modules/features/feature.html#coercablecomponent"><code>CoercableComponent</code></a> ; <code>effectDisplay?</code>: <a href="./../../../modules/features/feature.html#coercablecomponent"><code>CoercableComponent</code></a> ; <code>title?</code>: <a href="./../../../modules/features/feature.html#coercablecomponent"><code>CoercableComponent</code></a> }>> } ; <code>id</code>: { <code>required</code>: <code>true</code> = true; <code>type</code>: <code>StringConstructor</code> = String } ; <code>mark</code>: <code>PropType</code><<a href="./../../../modules/util/computed.html#processedcomputable"><code>ProcessedComputable</code></a><<code>string</code> | <code>boolean</code>>> ; <code>purchase</code>: { <code>required</code>: <code>true</code> = true; <code>type</code>: <code>PropType</code><<code>VoidFunction</code>> } ; <code>resource</code>: <code>PropType</code><<a href="../resources/resource.Resource"><code>Resource</code></a><<a href="./../../../modules/lib/break_eternity.html#decimalsource"><code>DecimalSource</code></a>>> ; <code>style</code>: <code>PropType</code><<a href="./../../../modules/util/computed.html#processedcomputable"><code>ProcessedComputable</code></a><<a href="./../../../modules/features/feature.html#stylevalue"><code>StyleValue</code></a>>> ; <code>visibility</code>: { <code>required</code>: <code>true</code> = true; <code>type</code>: <code>PropType</code><<a href="./../../../modules/util/computed.html#processedcomputable"><code>ProcessedComputable</code></a><<a href="../../../enums/features/feature.Visibility"><code>Visibility</code></a>>> } }, { <code>Visibility</code>: typeof <a href="../../../enums/features/feature.Visibility"><code>Visibility</code></a> ; <code>component</code>: <code>ShallowRef</code><<code>string</code> | <code>Component</code><<code>any</code>, <code>any</code>, <code>any</code>, <code>ComputedOptions</code>, <code>MethodOptions</code>>> ; <code>unref</code>: <T>(<code>ref</code>: <code>T</code> | <code>Ref</code><<code>T</code>>) => <code>T</code> }, <code>unknown</code>, {}, {}, <code>ComponentOptionsMixin</code>, <code>ComponentOptionsMixin</code>, <code>Record</code><<code>string</code>, <code>any</code>>, <code>string</code>, <code>PublicProps</code>, <code>Readonly</code><<code>ExtractPropTypes</code><{ <code>bought</code>: { <code>required</code>: <code>true</code> = true; <code>type</code>: <code>PropType</code><<a href="./../../../modules/util/computed.html#processedcomputable"><code>ProcessedComputable</code></a><<code>boolean</code>>> } ; <code>canPurchase</code>: { <code>required</code>: <code>true</code> = true; <code>type</code>: <code>PropType</code><<a href="./../../../modules/util/computed.html#processedcomputable"><code>ProcessedComputable</code></a><<code>boolean</code>>> } ; <code>classes</code>: <code>PropType</code><<a href="./../../../modules/util/computed.html#processedcomputable"><code>ProcessedComputable</code></a><<code>Record</code><<code>string</code>, <code>boolean</code>>>> ; <code>cost</code>: <code>PropType</code><<a href="./../../../modules/util/computed.html#processedcomputable"><code>ProcessedComputable</code></a><<a href="./../../../modules/lib/break_eternity.html#decimalsource"><code>DecimalSource</code></a>>> ; <code>display</code>: { <code>required</code>: <code>true</code> = true; <code>type</code>: <code>PropType</code><<a href="./../../../modules/util/computed.html#processedcomputable"><code>ProcessedComputable</code></a><<code>undefined</code> | <a href="./../../../modules/features/feature.html#coercablecomponent"><code>CoercableComponent</code></a> | { <code>description</code>: <a href="./../../../modules/features/feature.html#coercablecomponent"><code>CoercableComponent</code></a> ; <code>effectDisplay?</code>: <a href="./../../../modules/features/feature.html#coercablecomponent"><code>CoercableComponent</code></a> ; <code>title?</code>: <a href="./../../../modules/features/feature.html#coercablecomponent"><code>CoercableComponent</code></a> } | { <code>description</code>: <a href="./../../../modules/features/feature.html#coercablecomponent"><code>CoercableComponent</code></a> ; <code>effectDisplay?</code>: <a href="./../../../modules/features/feature.html#coercablecomponent"><code>CoercableComponent</code></a> ; <code>title?</code>: <a href="./../../../modules/features/feature.html#coercablecomponent"><code>CoercableComponent</code></a> }>> } ; <code>id</code>: { <code>required</code>: <code>true</code> = true; <code>type</code>: <code>StringConstructor</code> = String } ; <code>mark</code>: <code>PropType</code><<a href="./../../../modules/util/computed.html#processedcomputable"><code>ProcessedComputable</code></a><<code>string</code> | <code>boolean</code>>> ; <code>purchase</code>: { <code>required</code>: <code>true</code> = true; <code>type</code>: <code>PropType</code><<code>VoidFunction</code>> } ; <code>resource</code>: <code>PropType</code><<a href="../resources/resource.Resource"><code>Resource</code></a><<a href="./../../../modules/lib/break_eternity.html#decimalsource"><code>DecimalSource</code></a>>> ; <code>style</code>: <code>PropType</code><<a href="./../../../modules/util/computed.html#processedcomputable"><code>ProcessedComputable</code></a><<a href="./../../../modules/features/feature.html#stylevalue"><code>StyleValue</code></a>>> ; <code>visibility</code>: { <code>required</code>: <code>true</code> = true; <code>type</code>: <code>PropType</code><<a href="./../../../modules/util/computed.html#processedcomputable"><code>ProcessedComputable</code></a><<a href="../../../enums/features/feature.Visibility"><code>Visibility</code></a>>> } }>>, {}></p><h4 id="defined-in" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/305946e/src/features/upgrades/upgrade.ts#L55" target="_blank" rel="noopener noreferrer">profectus/src/features/upgrades/upgrade.ts:55</a></p><hr><h3 id="defaultvalue" tabindex="-1">[DefaultValue] <a class="header-anchor" href="#defaultvalue" aria-hidden="true">#</a></h3><p>\u2022 <strong>[DefaultValue]</strong>: <code>boolean</code></p><h4 id="inherited-from" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from" aria-hidden="true">#</a></h4><p>Persistent.__@DefaultValue@18652</p><h4 id="defined-in-1" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-1" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/305946e/src/game/persistence.ts#L25" target="_blank" rel="noopener noreferrer">profectus/src/game/persistence.ts:25</a></p><hr><h3 id="persistentstate" tabindex="-1">[PersistentState] <a class="header-anchor" href="#persistentstate" aria-hidden="true">#</a></h3><p>\u2022 <strong>[PersistentState]</strong>: <code>Ref</code><<code>boolean</code>></p><h4 id="inherited-from-1" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-1" aria-hidden="true">#</a></h4><p>Persistent.__@PersistentState@18650</p><h4 id="defined-in-2" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-2" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/305946e/src/game/persistence.ts#L24" target="_blank" rel="noopener noreferrer">profectus/src/game/persistence.ts:24</a></p><hr><h3 id="bought" tabindex="-1">bought <a class="header-anchor" href="#bought" aria-hidden="true">#</a></h3><p>\u2022 <strong>bought</strong>: <code>Ref</code><<code>boolean</code>></p><h4 id="defined-in-3" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-3" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/305946e/src/features/upgrades/upgrade.ts#L51" target="_blank" rel="noopener noreferrer">profectus/src/features/upgrades/upgrade.ts:51</a></p><hr><h3 id="canpurchase" tabindex="-1">canPurchase <a class="header-anchor" href="#canpurchase" aria-hidden="true">#</a></h3><p>\u2022 <strong>canPurchase</strong>: <code>Ref</code><<code>boolean</code>></p><h4 id="defined-in-4" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-4" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/305946e/src/features/upgrades/upgrade.ts#L52" target="_blank" rel="noopener noreferrer">profectus/src/features/upgrades/upgrade.ts:52</a></p><hr><h3 id="id" tabindex="-1">id <a class="header-anchor" href="#id" aria-hidden="true">#</a></h3><p>\u2022 <strong>id</strong>: <code>string</code></p><h4 id="defined-in-5" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-5" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/305946e/src/features/upgrades/upgrade.ts#L50" target="_blank" rel="noopener noreferrer">profectus/src/features/upgrades/upgrade.ts:50</a></p><hr><h3 id="purchase" tabindex="-1">purchase <a class="header-anchor" href="#purchase" aria-hidden="true">#</a></h3><p>\u2022 <strong>purchase</strong>: <code>VoidFunction</code></p><h4 id="defined-in-6" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-6" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/305946e/src/features/upgrades/upgrade.ts#L53" target="_blank" rel="noopener noreferrer">profectus/src/features/upgrades/upgrade.ts:53</a></p><hr><h3 id="type" tabindex="-1">type <a class="header-anchor" href="#type" aria-hidden="true">#</a></h3><p>\u2022 <strong>type</strong>: typeof <a href="./../../../modules/features/upgrades/upgrade.html#upgradetype"><code>UpgradeType</code></a></p><h4 id="defined-in-7" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-7" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/305946e/src/features/upgrades/upgrade.ts#L54" target="_blank" rel="noopener noreferrer">profectus/src/features/upgrades/upgrade.ts:54</a></p><h2 id="methods" tabindex="-1">Methods <a class="header-anchor" href="#methods" aria-hidden="true">#</a></h2><h3 id="gatherprops" tabindex="-1">[GatherProps] <a class="header-anchor" href="#gatherprops" aria-hidden="true">#</a></h3><p>\u25B8 <strong>[GatherProps]</strong>(): <code>Record</code><<code>string</code>, <code>unknown</code>></p><h4 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-hidden="true">#</a></h4><p><code>Record</code><<code>string</code>, <code>unknown</code>></p><h4 id="defined-in-8" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-8" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/305946e/src/features/upgrades/upgrade.ts#L56" target="_blank" rel="noopener noreferrer">profectus/src/features/upgrades/upgrade.ts:56</a></p>',55),a=[r];function s(n,l,u,i,p,h){return d(),o("div",null,a)}var g=e(t,[["render",s]]);export{m as __pageData,g as default};
|