waytale - v0.3.0
    Preparing search index...

    Class WaytaleGadget

    Representation of a thing that may appear in a space like an avatar. Avatars can interact with it by means of the context-dependent window half, if they are close enough or in the area of the gadget.

    currently only distance detection by radius available

    mixinPropertyObserver

    Index

    Constructors

    • Create new gadget.

      Parameters

      • title: string

        title of gadget

      • tilesSpec: number[][]

        tiles in the map

      • graphics: string

        file ID of graphics

      Returns WaytaleGadget

    Properties

    graphics: string

    file ID of graphics

    position: number[]

    location in the map

    radius: number

    interaction radius

    tiles: any[]
    tilesSpec: number[][]
    title: string

    title of gadget

    Methods

    • Return a neat title for the gadget. Robustly, with smart fallbacks. May be overridden.

      Returns string

      • title of gadget