Interface RepresentationChangeEvent

Fired when the current representation changes.

interface RepresentationChangeEvent {
    date: Date;
    previousRepresentation: undefined | Representation;
    representation: undefined | Representation;
    type: "representationchange";
}

Hierarchy (view full)

  • Event<"representationchange">
    • RepresentationChangeEvent

Properties

date: Date

The creation date of the event.

previousRepresentation: undefined | Representation

The player's previous representation.

representation: undefined | Representation

The player's current representation.

type: "representationchange"

The type of the event.