Skip to content
On this page

Module: features/resources/resource

Components

Interfaces

Functions

createResource

createResource<T>(defaultValue, displayName?, precision?, small?): Resource<T>

Type parameters

NameType
Textends State

Parameters

NameTypeDefault value
defaultValueT | Ref<T>undefined
displayNamestring"points"
precisionnumber0
smallundefinedundefined

Returns

Resource<T>


displayResource

displayResource(resource, overrideAmount?): string

Parameters

NameType
resourceResource<DecimalSource>
overrideAmount?DecimalSource

Returns

string


trackBest

trackBest(resource): Ref<DecimalSource>

Parameters

NameType
resourceResource<DecimalSource>

Returns

Ref<DecimalSource>


trackOOMPS

trackOOMPS(resource, pointGain?): Ref<string>

Parameters

NameType
resourceResource<DecimalSource>
pointGain?ComputedRef<DecimalSource>

Returns

Ref<string>


trackTotal

trackTotal(resource): Ref<DecimalSource>

Parameters

NameType
resourceResource<DecimalSource>

Returns

Ref<DecimalSource>