Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DragonBonesAsset

The skeleton data of dragonBones.

Hierarchy

Index

Constructors

constructor

Properties

__asyncLoadAssets__

__asyncLoadAssets__: boolean = false

__depends__

__depends__: any = null

__nativeDepend__

__nativeDepend__: any = null

__onLoadedInvoked__

__onLoadedInvoked__: boolean = false

Private _armaturesEnum

_armaturesEnum: any = null

Protected _dragonBonesJson

_dragonBonesJson: string = ""

Protected Optional _dragonBonesJsonData

_dragonBonesJsonData: ArrayBuffer

Private _factory

_factory: CCFactory | null = null

_native

_native: string = ""

Serializable url for native asset. For internal usage.

default

""

_nativeUrl

_nativeUrl: string = ""

_uuid

_uuid: string

loaded

loaded: boolean = true

Whether the asset is loaded or not

Static preventDeferredLoadDependents

preventDeferredLoadDependents: boolean = true

Static preventPreloadNativeObject

preventPreloadNativeObject: boolean = false

Indicates whether its native object should be preloaded from native url.

default

false

Accessors

Private nativeAsset

  • get nativeAsset(): any
  • set nativeAsset(obj: any): void
  • The underlying native asset of this asset if one is available.
    This property can be used to access additional details or functionality releated to the asset.
    This property will be initialized by the loader if _native is available.

    default

    null

    Returns any

  • The underlying native asset of this asset if one is available.
    This property can be used to access additional details or functionality releated to the asset.
    This property will be initialized by the loader if _native is available.

    default

    null

    Parameters

    • obj: any

    Returns void

nativeDep

  • get nativeDep(): undefined | { __isNative__: boolean; ext: string; uuid: string }

dragonBonesJson

  • get dragonBonesJson(): string
  • set dragonBonesJson(value: string): void

nativeUrl

  • get nativeUrl(): string

refCount

  • get refCount(): number

Methods

Protected clear

  • _clear(): void

Private setRawAsset

  • setRawAsset(filename: string, inLibrary?: boolean): void

addRef

constructctor

  • constructctor(): void

createNode

  • createNode(callback: (err: Error | null, node: Node) => void): void

decRef

  • decRef(autoRelease?: boolean): Asset

destroy

  • destroy(): any

getAnimsEnum

  • getAnimsEnum(armatureName: string): null | { <None>: number }

getArmatureEnum

  • getArmatureEnum(): any

init

  • init(factory?: CCFactory, atlasUUID?: undefined | string): string

onLoaded

  • onLoaded(): void

reset

  • reset(): void

Private serialize

  • serialize(): void

toString

  • toString(): string
  • Returns the string representation of the object.
    The Asset object overrides the toString() method of the Object object.
    JavaScript calls the toString() method automatically
    when an asset is to be represented as a text value or when a texture is referred to in a string concatenation.

    For assets of the native type, it will return this.nativeUrl.
    Otherwise, an empty string is returned.
    This method may be overwritten by subclasses.

    method

    toString

    Returns string

Static deserialize

  • deserialize(data: any): any

Generated using TypeDoc