Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • IFocusable

Implemented by

Index

Properties

name: string

The name of the focusable.

Methods

  • canFocus(): boolean
  • Checks whether we can focus on something.

    Returns boolean

    Whether this action is available.

  • focus(): number
  • Execute focus using ns.singularity. If another item is focused on, will switch focus.

    Returns number

    The time to sleep if successfully completed, -1 otherwise.

  • getCheckInterval(): number
  • Gets the check time while soft-sleeping.

    Returns number

    How often to check if the task is complete.

  • getDetailText(): string
  • Gets the detail text used for text output.

    Returns string

    Text to use for logs and toasts for this focusable.

  • getFocusTime(): number
  • Gets the focus time to wait after running the action.

    Returns number

    The time to sleep before running the manager again.

  • getPriority(): number
  • Gets the current priority of the focusable action.

    Returns number

    Current priority, with 0 being the highest.

  • shouldContinueRunning(): boolean
  • Checks whether the task should keep on running.

    Returns boolean

    True if this should continue running, false otherwise.

  • shouldRunInBackground(): boolean
  • Determines whether this action should run in the background or be focused on.

    Returns boolean

    True if this can run in the background, False if it needs to be in the foreground.

Generated using TypeDoc