import{_ as a,c as r,a0 as t,o}from"./chunks/framework.P9qPzDnn.js";const f=JSON.parse('{"title":"Interface: Resource","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/features/resources/resource/interfaces/Resource.md","filePath":"api/features/resources/resource/interfaces/Resource.md","lastUpdated":null}'),s={name:"api/features/resources/resource/interfaces/Resource.md"};function i(n,e,c,d,l,u){return o(),r("div",null,e[0]||(e[0]=[t('

Profectus / features/resources/resource / Resource

Interface: Resource<T>

An object that represents a named and quantifiable resource in the game.

Extends

Type Parameters

T = DecimalSource

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]

Defined in

node_modules/@vue/reactivity/dist/reactivity.d.ts:427


displayName

displayName: string

The name of this resource.

Defined in

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


precision

precision: number

When displaying the value of this resource, how many significant digits to display.

Defined in

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


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

Accessors

value

Get Signature

get value(): T

Returns

T

Set Signature

set value(_): void

Parameters
_

S

Returns

void

Inherited from

Ref.value

Defined in

node_modules/@vue/reactivity/dist/reactivity.d.ts:420

',50)]))}const p=a(s,[["render",i]]);export{f as __pageData,p as default};