Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Emitter
    • Content

Index

Constructors

constructor

Properties

Private _loadedResourceHandler

_loadedResourceHandler: (data: { resource: any; target: any }) => void

Type declaration

    • (data: { resource: any; target: any }): void
    • Parameters

      • data: { resource: any; target: any }
        • resource: any
        • target: any

      Returns void

Protected _piximData

_piximData: IContentData

Static Protected _piximData

_piximData: IContentStaticData

Accessors

assetCount

  • get assetCount(): number

classAssetCount

  • get classAssetCount(): number

contentID

  • get contentID(): string

instanceAssetCount

  • get instanceAssetCount(): number

Methods

Private _loadAssetAsync

addImages

addJsons

addSounds

addSpritesheets

addTargets

addVars

buildAsync

  • buildAsync(): Promise<Container>

cemit

  • cemit(type: string, context: any, ...args: any[]): Content
  • Emit event with specifying a context.

    Parameters

    • type: string

      Event type to emit.

    • context: any

      Context to execute the callback.

    • Rest ...args: any[]

      Argument(s) in callback.

    Returns Content

cemitAll

  • cemitAll(context: any, ...args: any[]): Content
  • Emit all events with specifying a context.

    Parameters

    • context: any

      Context to execute the callback.

    • Rest ...args: any[]

      Argument(s) in callback.

    Returns Content

clear

  • Remove events grouped event type.

    Parameters

    • Optional type: string

      Event type to remove. If it is empty, removes all events.

    Returns Content

destroy

  • destroy(): void

emit

  • emit(type: string, ...args: any[]): Content
  • Emit event.

    Parameters

    • type: string

      Event type to emit.

    • Rest ...args: any[]

      Argument(s) in callback.

    Returns Content

emitAll

  • Emit all events.

    Parameters

    • Rest ...args: any[]

      Argument(s) in callback.

    Returns Content

off

  • off(type: string, callback: IEmitterDelegate): Content
  • Unregister event.

    Parameters

    • type: string

      Event type.

    • callback: IEmitterDelegate

      Registered callback.

    Returns Content

on

  • on(type: string, callback: IEmitterDelegate): Content
  • Register event.

    Parameters

    • type: string

      Event type.

    • callback: IEmitterDelegate

      Callback when the event fires.

    Returns Content

once

  • once(type: string, callback: IEmitterDelegate): Content
  • Register one-time event.

    Parameters

    • type: string

      Event type.

    • callback: IEmitterDelegate

      Callback when the event fires.

    Returns Content

preloadClassAssetAsync

  • preloadClassAssetAsync(): Promise<void>

preloadInstanceAssetAsync

  • preloadInstanceAssetAsync(): Promise<void>

prepareAsync

  • prepareAsync(): Promise<void>

Static create

  • create(key?: string): typeof Content

Static defineImages

Static defineJsons

Static defineLibraries

  • Define libraries that is material of the content.
    In the constructor named root, Application passes a reference to ContentDeliver as an argument.
    By giving this argument to the child further, you will be able to access the data freely from anywhere.

    Parameters

    Returns typeof Content

Static defineSounds

Static defineSpritesheets

Static defineTargets

Static get

Static registerManifest

Static remove

  • remove(key: string): void

Static setConfig

Generated using TypeDoc