Module: features/resources/resource

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>

Defined in

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


displayResource

displayResource(resource, overrideAmount?): string

Parameters

NameType
resourceResource<DecimalSource>
overrideAmount?DecimalSource

Returns

string

Defined in

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


trackBest

trackBest(resource): Ref<DecimalSource>

Parameters

NameType
resourceResource<DecimalSource>

Returns

Ref<DecimalSource>

Defined in

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


trackOOMPS

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

Parameters

NameType
resourceResource<DecimalSource>
pointGain?ComputedRef<DecimalSource>

Returns

Ref<string>

Defined in

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


trackTotal

trackTotal(resource): Ref<DecimalSource>

Parameters

NameType
resourceResource<DecimalSource>

Returns

Ref<DecimalSource>

Defined in

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