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:15


displayResource

displayResource(resource, overrideAmount?): string

Parameters

NameType
resourceResource<DecimalSource>
overrideAmount?DecimalSource

Returns

string

Defined in

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


trackBest

trackBest(resource): Ref<DecimalSource>

Parameters

NameType
resourceResource<DecimalSource>

Returns

Ref<DecimalSource>

Defined in

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


trackOOMPS

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

Parameters

NameType
resourceResource<DecimalSource>
pointGain?ComputedRef<DecimalSource>

Returns

Ref<string>

Defined in

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


trackTotal

trackTotal(resource): Ref<DecimalSource>

Parameters

NameType
resourceResource<DecimalSource>

Returns

Ref<DecimalSource>

Defined in

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