Interface: Resource<T>
features/resources/resource.Resource
An object that represents a named and quantifiable resource in the game.
Type parameters
Name | Type |
---|---|
T | DecimalSource |
Hierarchy
Ref
<T
>↳
Resource
Properties
[RefSymbol]
• [RefSymbol]: true
Type differentiator only. We need this to be in public d.ts but don't want it to show up in IDE autocomplete, so we use a private Symbol instead.
Inherited from
Ref.__@RefSymbol@312
Defined in
node_modules/@vue/reactivity/dist/reactivity.d.ts:202
displayName
• displayName: string
The name of this resource.
Defined in
profectus/src/features/resources/resource.ts:14
precision
• precision: number
When displaying the value of this resource, how many significant digits to display.
Defined in
profectus/src/features/resources/resource.ts:16
small
• Optional
small: boolean
Whether or not to display very small values using scientific notation, or rounding to 0.
Defined in
profectus/src/features/resources/resource.ts:18
value
• value: T
Inherited from
Ref.value
Defined in
node_modules/@vue/reactivity/dist/reactivity.d.ts:196