WedgeState
Since 0.7
{@link stepWedge}'s memory: keep it in ctx.state.
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
| Member | Signature | Description |
|---|---|---|
pinned | pinned: number | Seconds it has been held at the throttle and going nowhere. |
span | span: number | Seconds of throttle held in the current progress span. |
advanced | advanced: number | Metres along the road made in that span. |
backing | backing: number | Seconds of backing out left; 0 when driving. |
tries | tries: number | Back-outs since it last got going. |
free | free: number | Seconds it has been moving freely since the last back-out. |
stuck | stuck: boolean | True once maxTries back-outs have failed; cleared when it gets going again. |