profectus-docs/assets/api_features_resources_resource_functions_trackOOMPS.md.PoLsk21f.js

1 line
2.7 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{_ as r,c as a,a0 as t,o}from"./chunks/framework.P9qPzDnn.js";const f=JSON.parse('{"title":"Function: trackOOMPS()","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/features/resources/resource/functions/trackOOMPS.md","filePath":"api/features/resources/resource/functions/trackOOMPS.md","lastUpdated":null}'),s={name:"api/features/resources/resource/functions/trackOOMPS.md"};function c(n,e,i,u,d,l){return o(),a("div",null,e[0]||(e[0]=[t('<p><a href="./../../../../">Profectus</a> / <a href="./../">features/resources/resource</a> / trackOOMPS</p><h1 id="function-trackoomps" tabindex="-1">Function: trackOOMPS() <a class="header-anchor" href="#function-trackoomps" aria-label="Permalink to &quot;Function: trackOOMPS()&quot;"></a></h1><blockquote><p><strong>trackOOMPS</strong>(<code>resource</code>, <code>pointGain</code>?): <a href="https://vuejs.org/guide/typescript/composition-api.html#typing-ref" target="_blank" rel="noreferrer"><code>Ref</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>Returns a reference to the amount of resource being gained in terms of orders of magnitude per second, calcualted over the last tick. Useful for situations where the gain rate is increasing very rapidly.</p><h2 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-label="Permalink to &quot;Parameters&quot;"></a></h2><h3 id="resource" tabindex="-1">resource <a class="header-anchor" href="#resource" aria-label="Permalink to &quot;resource&quot;"></a></h3><p><a href="./../interfaces/Resource"><code>Resource</code></a></p><h3 id="pointgain" tabindex="-1">pointGain? <a class="header-anchor" href="#pointgain" aria-label="Permalink to &quot;pointGain?&quot;"></a></h3><p><a href="https://vuejs.org/guide/typescript/composition-api.html#typing-computed" target="_blank" rel="noreferrer"><code>ComputedRef</code></a>&lt;<a href="./../../../../lib/break_eternity/type-aliases/DecimalSource"><code>DecimalSource</code></a>&gt;</p><h2 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-label="Permalink to &quot;Returns&quot;"></a></h2><p><a href="https://vuejs.org/guide/typescript/composition-api.html#typing-ref" target="_blank" rel="noreferrer"><code>Ref</code></a>&lt;<code>string</code>&gt;</p><h2 id="defined-in" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in" aria-label="Permalink to &quot;Defined in&quot;"></a></h2><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/features/resources/resource.ts#L93" target="_blank" rel="noreferrer">profectus/src/features/resources/resource.ts:93</a></p>',13)]))}const h=r(s,[["render",c]]);export{f as __pageData,h as default};