Module: features/resources/resource
Interfaces
Functions
createResource
▸ createResource<T
>(defaultValue
, displayName?
, precision?
, small?
): Resource
<T
>
Type parameters
Name | Type |
---|---|
T | extends State |
Parameters
Name | Type | Default value |
---|---|---|
defaultValue | T | Ref <T > | undefined |
displayName | string | "points" |
precision | number | 0 |
small | undefined | undefined |
Returns
Resource
<T
>
Defined in
profectus/src/features/resources/resource.ts:15
displayResource
▸ displayResource(resource
, overrideAmount?
): string
Parameters
Name | Type |
---|---|
resource | Resource <DecimalSource > |
overrideAmount? | DecimalSource |
Returns
string
Defined in
profectus/src/features/resources/resource.ts:110
trackBest
▸ trackBest(resource
): Ref
<DecimalSource
>
Parameters
Name | Type |
---|---|
resource | Resource <DecimalSource > |
Returns
Ref
<DecimalSource
>
Defined in
profectus/src/features/resources/resource.ts:30
trackOOMPS
▸ trackOOMPS(resource
, pointGain?
): Ref
<string
>
Parameters
Name | Type |
---|---|
resource | Resource <DecimalSource > |
pointGain? | ComputedRef <DecimalSource > |
Returns
Ref
<string
>
Defined in
profectus/src/features/resources/resource.ts:52
trackTotal
▸ trackTotal(resource
): Ref
<DecimalSource
>
Parameters
Name | Type |
---|---|
resource | Resource <DecimalSource > |
Returns
Ref
<DecimalSource
>