Interface: BaseAction
features/action.BaseAction
The properties that are added onto a processed ActionOptions to create an Action.
Properties
[Component]
• [Component]: GenericComponent
The Vue component used to render this feature.
Defined in
profectus/src/features/action.tsx:69
[GatherProps]
• [GatherProps]: () => Record
<string
, unknown
>
Type declaration
▸ (): Record
<string
, unknown
>
A function to gather the props the vue component requires for this feature.
Returns
Record
<string
, unknown
>
Defined in
profectus/src/features/action.tsx:71
id
• id: string
An auto-generated ID for identifying features that appear in the DOM. Will not persist between refreshes or updates.
Defined in
profectus/src/features/action.tsx:57
isHolding
• 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.
Defined in
profectus/src/features/action.tsx:61
progress
• progress: Ref
<DecimalSource
>
The current amount of progress through the cooldown.
Defined in
profectus/src/features/action.tsx:63
progressBar
• progressBar: GenericBar
The bar used to display the current cooldown progress.
Defined in
profectus/src/features/action.tsx:65
type
• type: typeof ActionType
A symbol that helps identify features of the same type.
Defined in
profectus/src/features/action.tsx:59
update
• update: (diff
: number
) => void
Type declaration
▸ (diff
): void
Update the cooldown the specified number of seconds
Parameters
Name | Type |
---|---|
diff | number |
Returns
void