waytale - v0.3.0
    Preparing search index...

    Class WaytaleSpaceController

    General space and map management. Deals with events related to loading and unloading of space and maps, including subsequent addition and removal of avatars and gadgets. Load resources like space.json and map.json.

    The responsibilities of this class are currently quite broad and might be split up in the future.

    Hierarchy (View Summary)

    Index

    Constructors

    • Set up various event callbacks. On 'init', load space.

      Parameters

      • model: WaytaleModel

        Waytale model instance

      • view: WaytaleView

        Waytale view instance

      Returns WaytaleSpaceController

    Properties

    loadingJsonErrorHandler: (error: any) => void
    model: WaytaleModel
    view: any

    Methods

    • Load a map.

      Parameters

      • Optionalspace: WaytaleSpace

        Waytale space instance, defaults to currently loaded space

      • OptionalmapName: string

        name of map to load, defaults to first map set in space config

      Returns Promise<void>

    • Load a space.

      Parameters

      • Optionalurl: string

        Waytale space instance, defaults to current URL (window.location)

      Returns Promise<void>

    • Parameters

      • map: any
      • avatar: any

      Returns void

    • Parameters

      • map: any

      Returns void

    • Parameters

      • settings: any
      • oldSettings: any

      Returns void

    • Parameters

      • _space: any

      Returns void