Class DrawingLogger

A vertical list of Lines.

Hierarchy

  • DrawingLogger

Constructors

Properties

behavior: MaxLogBehavior = "wait"
counter: number = 0
direction: LogDirection = "up"

The direction to render logs in.

lines: LineEntry[] = []
logTime: number = 10

The amount of time that logs are displayed for (in seconds).

maxLines: number = 10

The maximum number of lines to display at once.

offset: Vector2 = ...
queue: LineEntry[] = []

Methods

  • Stops the logger and removes all lines.

    Once called, addLine will do nothing.

    Returns void

  • Remove all lines, including those in the queue.

    Returns void

  • Dismiss a line by its id.

    Returns

    true if found, false otherwise.

    Parameters

    • id: string

    Returns boolean

  • Parameters

    Returns {
        enteredAt: DateTime;
        id: string;
        line: Line;
        visible: boolean;
    }

    • enteredAt: DateTime
    • id: string
    • line: Line
    • visible: boolean
  • Show arbitrary data as a colorized line.

    Parameters

    • Rest ...args: unknown[]

    Returns string

  • Parameters

    • id: string

    Returns boolean

Generated using TypeDoc