Talos docs

WedgeState

Since 0.7

{@link stepWedge}'s memory: keep it in ctx.state.

Plain text

Signature

export interface WedgeState {
  /** Seconds it has been held at the throttle and going nowhere. */
  pinned: number
  /** Seconds of throttle held in the current progress span. */
  span: number
  /** Metres along the road made in that span. */
  advanced: number
  /** Seconds of backing out left; 0 when driving. */
  backing: number
  /** Back-outs since it last got going. */
  tries: number
  /** Seconds it has been moving freely since the last back-out. */
  free: number
  /** True once `maxTries` back-outs have failed; cleared when it gets going again. */
  stuck: boolean
}

Import: import type { WedgeState } from "@argus/gameplay"

Members

MemberSignatureDescription
pinnedpinned: numberSeconds it has been held at the throttle and going nowhere.
spanspan: numberSeconds of throttle held in the current progress span.
advancedadvanced: numberMetres along the road made in that span.
backingbacking: numberSeconds of backing out left; 0 when driving.
triestries: numberBack-outs since it last got going.
freefree: numberSeconds it has been moving freely since the last back-out.
stuckstuck: booleanTrue once maxTries back-outs have failed; cleared when it gets going again.