Skip to content

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