Options
All
  • Public
  • Public/Protected
  • All
Menu

Data for an entity's texture.

Hierarchy

  • Component
    • Texture

Implements

Indexable

[name: string]: any

Data for an entity's texture.

Index

Properties

anchorX

anchorX: number

The texture's X anchor coordinate, in pixels.

anchorY

anchorY: number

The texture's Y anchor coordinate, in pixels.

entity

entity: Entity

id

id: string

name

name: string

The texture name.

Static key

key: string = "texture"

Static registered

registered: Boolean

Static serialize

serialize: Boolean

Static serializeFields

serializeFields: string[]

Static skipSerializeFields

skipSerializeFields: string[]

Static subbed

subbed: Boolean

Static typeName

typeName: string = "Texture"

Accessors

key

  • set key(arg: string): any
  • Parameters

    • arg: string

    Returns any

type

  • get type(): string
  • Returns string

Methods

destroy

  • destroy(): void
  • Returns void

getObject

  • getObject(withIds?: undefined | false | true): IComponentObject
  • Parameters

    • Optional withIds: undefined | false | true

    Returns IComponentObject

init

  • init(initial: any): void
  • Parameters

    • initial: any

    Returns void

postDestroy

  • postDestroy(): void
  • Returns void

preDestroy

  • preDestroy(): void
  • Returns void

preInit

  • preInit(initial: any): any
  • Parameters

    • initial: any

    Returns any

update

  • update(values?: IComponentUpdate): void
  • Parameters

    • Optional values: IComponentUpdate

    Returns void

Object literals

Static properties

properties: object

anchorX

anchorX: number = 0

anchorY

anchorY: number = 0

name

name: string = ""

Generated using TypeDoc