Class Token

A playing piece with a 3D model, tint color, and scale.

Hierarchy

Implements

Constructors

Properties

_lastActionIndex: number
children: DisplayContainer = ...

Contains child objects that are displayed on top of this token. This will also contain objects from display annotated properties, using the property keys as names.

color?: Color

Model tint color.

hiddenName?: string

Optional display name for this object when hidden.

name?: string

Optional display name for this object.

Accessors

  • get localBounds(): Bounds
  • How much space does this object take up.

    Returns Bounds

Methods

  • Builds a view of this object from the perspective of a player.

    Parameters

    • ctx: RenderContext

      Information about where the object is in the scene, and who's viewing it.

    Returns TokenView

Generated using TypeDoc