import{_ as r,c as a,a0 as t,o}from"./chunks/framework.P9qPzDnn.js";const p=JSON.parse('{"title":"Function: trackTotal()","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/features/resources/resource/functions/trackTotal.md","filePath":"api/features/resources/resource/functions/trackTotal.md","lastUpdated":null}'),c={name:"api/features/resources/resource/functions/trackTotal.md"};function s(n,e,i,u,l,d){return o(),a("div",null,e[0]||(e[0]=[t('

Profectus / features/resources/resource / trackTotal

Function: trackTotal()

trackTotal(resource): Ref<DecimalSource>

Returns a reference to the total amount of the resource gained, updated automatically. "Refunds" count as gain.

Parameters

resource

Resource

Returns

Ref<DecimalSource>

Defined in

profectus/src/features/resources/resource.ts:77

',11)]))}const h=r(c,[["render",s]]);export{p as __pageData,h as default};