profectus-docs/assets/api_interfaces_features_buyable.BuyableOptions.md.34250161.js

1 line
9.1 KiB
JavaScript

import{_ as e,c as a,o as r,a as t}from"./app.cf939732.js";const b=JSON.parse('{"title":"Interface: BuyableOptions","description":"","frontmatter":{"editLink":false},"headers":[{"level":2,"title":"Properties","slug":"properties"},{"level":3,"title":"canPurchase","slug":"canpurchase"},{"level":3,"title":"classes","slug":"classes"},{"level":3,"title":"cost","slug":"cost"},{"level":3,"title":"display","slug":"display"},{"level":3,"title":"mark","slug":"mark"},{"level":3,"title":"onPurchase","slug":"onpurchase"},{"level":3,"title":"purchaseLimit","slug":"purchaselimit"},{"level":3,"title":"resource","slug":"resource"},{"level":3,"title":"small","slug":"small"},{"level":3,"title":"style","slug":"style"},{"level":3,"title":"visibility","slug":"visibility"}],"relativePath":"api/interfaces/features/buyable.BuyableOptions.md","lastUpdated":null}'),o={name:"api/interfaces/features/buyable.BuyableOptions.md"},s=t('<h1 id="interface-buyableoptions" tabindex="-1">Interface: BuyableOptions <a class="header-anchor" href="#interface-buyableoptions" aria-hidden="true">#</a></h1><p><a href="./../../modules/features/buyable.html">features/buyable</a>.BuyableOptions</p><h2 id="properties" tabindex="-1">Properties <a class="header-anchor" href="#properties" aria-hidden="true">#</a></h2><h3 id="canpurchase" tabindex="-1">canPurchase <a class="header-anchor" href="#canpurchase" aria-hidden="true">#</a></h3><p>\u2022 <code>Optional</code> <strong>canPurchase</strong>: <a href="./../../modules/util/computed.html#computable"><code>Computable</code></a>&lt;<code>boolean</code>&gt;</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/1f4676d/src/features/buyable.tsx#L36" target="_blank" rel="noopener noreferrer">profectus/src/features/buyable.tsx:36</a></p><hr><h3 id="classes" tabindex="-1">classes <a class="header-anchor" href="#classes" aria-hidden="true">#</a></h3><p>\u2022 <code>Optional</code> <strong>classes</strong>: <a href="./../../modules/util/computed.html#computable"><code>Computable</code></a>&lt;<code>Record</code>&lt;<code>string</code>, <code>boolean</code>&gt;&gt;</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/1f4676d/src/features/buyable.tsx#L38" target="_blank" rel="noopener noreferrer">profectus/src/features/buyable.tsx:38</a></p><hr><h3 id="cost" tabindex="-1">cost <a class="header-anchor" href="#cost" aria-hidden="true">#</a></h3><p>\u2022 <code>Optional</code> <strong>cost</strong>: <a href="./../../modules/util/computed.html#computable"><code>Computable</code></a>&lt;<a href="./../../modules/lib/break_eternity.html#decimalsource"><code>DecimalSource</code></a>&gt;</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/1f4676d/src/features/buyable.tsx#L34" target="_blank" rel="noopener noreferrer">profectus/src/features/buyable.tsx:34</a></p><hr><h3 id="display" tabindex="-1">display <a class="header-anchor" href="#display" aria-hidden="true">#</a></h3><p>\u2022 <code>Optional</code> <strong>display</strong>: <a href="./../../modules/util/computed.html#computable"><code>Computable</code></a>&lt;<a href="./../../modules/features/buyable.html#buyabledisplay"><code>BuyableDisplay</code></a>&gt;</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/1f4676d/src/features/buyable.tsx#L42" target="_blank" rel="noopener noreferrer">profectus/src/features/buyable.tsx:42</a></p><hr><h3 id="mark" tabindex="-1">mark <a class="header-anchor" href="#mark" aria-hidden="true">#</a></h3><p>\u2022 <code>Optional</code> <strong>mark</strong>: <a href="./../../modules/util/computed.html#computable"><code>Computable</code></a>&lt;<code>string</code> | <code>boolean</code>&gt;</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/1f4676d/src/features/buyable.tsx#L40" target="_blank" rel="noopener noreferrer">profectus/src/features/buyable.tsx:40</a></p><hr><h3 id="onpurchase" tabindex="-1">onPurchase <a class="header-anchor" href="#onpurchase" aria-hidden="true">#</a></h3><p>\u2022 <code>Optional</code> <strong>onPurchase</strong>: (<code>cost</code>: <code>undefined</code> | <a href="./../../modules/lib/break_eternity.html#decimalsource"><code>DecimalSource</code></a>) =&gt; <code>void</code></p><h4 id="type-declaration" tabindex="-1">Type declaration <a class="header-anchor" href="#type-declaration" aria-hidden="true">#</a></h4><p>\u25B8 (<code>cost</code>): <code>void</code></p><h5 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-hidden="true">#</a></h5><table><thead><tr><th style="text-align:left;">Name</th><th style="text-align:left;">Type</th></tr></thead><tbody><tr><td style="text-align:left;"><code>cost</code></td><td style="text-align:left;"><code>undefined</code> | <a href="./../../modules/lib/break_eternity.html#decimalsource"><code>DecimalSource</code></a></td></tr></tbody></table><h5 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-hidden="true">#</a></h5><p><code>void</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/1f4676d/src/features/buyable.tsx#L43" target="_blank" rel="noopener noreferrer">profectus/src/features/buyable.tsx:43</a></p><hr><h3 id="purchaselimit" tabindex="-1">purchaseLimit <a class="header-anchor" href="#purchaselimit" aria-hidden="true">#</a></h3><p>\u2022 <code>Optional</code> <strong>purchaseLimit</strong>: <a href="./../../modules/util/computed.html#computable"><code>Computable</code></a>&lt;<a href="./../../modules/lib/break_eternity.html#decimalsource"><code>DecimalSource</code></a>&gt;</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/1f4676d/src/features/buyable.tsx#L37" target="_blank" rel="noopener noreferrer">profectus/src/features/buyable.tsx:37</a></p><hr><h3 id="resource" tabindex="-1">resource <a class="header-anchor" href="#resource" aria-hidden="true">#</a></h3><p>\u2022 <code>Optional</code> <strong>resource</strong>: <a href="./resources/resource.Resource"><code>Resource</code></a>&lt;<a href="./../../modules/lib/break_eternity.html#decimalsource"><code>DecimalSource</code></a>&gt;</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/1f4676d/src/features/buyable.tsx#L35" target="_blank" rel="noopener noreferrer">profectus/src/features/buyable.tsx:35</a></p><hr><h3 id="small" tabindex="-1">small <a class="header-anchor" href="#small" aria-hidden="true">#</a></h3><p>\u2022 <code>Optional</code> <strong>small</strong>: <a href="./../../modules/util/computed.html#computable"><code>Computable</code></a>&lt;<code>boolean</code>&gt;</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/1f4676d/src/features/buyable.tsx#L41" target="_blank" rel="noopener noreferrer">profectus/src/features/buyable.tsx:41</a></p><hr><h3 id="style" tabindex="-1">style <a class="header-anchor" href="#style" aria-hidden="true">#</a></h3><p>\u2022 <code>Optional</code> <strong>style</strong>: <a href="./../../modules/util/computed.html#computable"><code>Computable</code></a>&lt;<a href="./../../modules/features/feature.html#stylevalue"><code>StyleValue</code></a>&gt;</p><h4 id="defined-in-9" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-9" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/1f4676d/src/features/buyable.tsx#L39" target="_blank" rel="noopener noreferrer">profectus/src/features/buyable.tsx:39</a></p><hr><h3 id="visibility" tabindex="-1">visibility <a class="header-anchor" href="#visibility" aria-hidden="true">#</a></h3><p>\u2022 <code>Optional</code> <strong>visibility</strong>: <a href="./../../modules/util/computed.html#computable"><code>Computable</code></a>&lt;<a href="../../enums/features/feature.Visibility"><code>Visibility</code></a>&gt;</p><h4 id="defined-in-10" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-10" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/1f4676d/src/features/buyable.tsx#L33" target="_blank" rel="noopener noreferrer">profectus/src/features/buyable.tsx:33</a></p>',63),d=[s];function i(l,c,n,h,u,f){return r(),a("div",null,d)}var m=e(o,[["render",i]]);export{b as __pageData,m as default};