import{_ as e,c as t,o as a,N as r}from"./chunks/framework.0799945b.js";const b=JSON.parse('{"title":"Interface: BaseAction","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/interfaces/features/action.BaseAction.md","lastUpdated":null}'),o={name:"api/interfaces/features/action.BaseAction.md"},n=r('
features/action.BaseAction
The properties that are added onto a processed ActionOptions to create an Action.
• [Component]: GenericComponent
The Vue component used to render this feature.
profectus/src/features/action.tsx:69
• [GatherProps]: () => Record
<string
, unknown
>
▸ (): Record
<string
, unknown
>
A function to gather the props the vue component requires for this feature.
Record
<string
, unknown
>
profectus/src/features/action.tsx:71
• id: string
An auto-generated ID for identifying features that appear in the DOM. Will not persist between refreshes or updates.
profectus/src/features/action.tsx:57
• isHolding: Ref
<boolean
>
Whether or not the player is holding down the action. Actions will be considered clicked as soon as the cooldown completes when being held down.
profectus/src/features/action.tsx:61
• progress: Ref
<DecimalSource
>
The current amount of progress through the cooldown.
profectus/src/features/action.tsx:63
• progressBar: GenericBar
The bar used to display the current cooldown progress.
profectus/src/features/action.tsx:65
• type: typeof ActionType
A symbol that helps identify features of the same type.
profectus/src/features/action.tsx:59
• update: (diff
: number
) => void
▸ (diff
): void
Update the cooldown the specified number of seconds
Name | Type |
---|---|
diff | number |
void