Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Zone

Index

Constructors

  • new Zone(__namedParameters: { description: string; index: number; name: string }): Zone
  • Class constructor.

    Parameters

    • __namedParameters: { description: string; index: number; name: string }
      • description: string
      • index: number
      • name: string

    Returns Zone

Properties

_currentTime: number = 0
_description: string
_id: string
_index: number
_name: string
_scene: Scene
_state: ZoneState = ZoneState.UNINITIALIZED

Accessors

  • get description(): string
  • get id(): string
  • get index(): number
  • get name(): string

Methods

  • initialize(zoneData: any): void
  • Initializes the zone with JSON data.

    Parameters

    • zoneData: any

    Returns void

    void

  • load(): void
  • Loads the scene and all it's entities.

    Returns void

    void

  • loadEntity(dataSection: any, parent?: Entity): void
  • Loads an entity into the scene.

    Parameters

    • dataSection: any
    • Optional parent: Entity

    Returns void

    void

  • onActivated(): void
  • onDeactivated(): void
  • unload(): void
  • update(delta: number): void
  • Calls update on the scene.

    Parameters

    • delta: number

    Returns void

    void

Generated using TypeDoc