Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EntityModel

Hierarchy

  • EventEmitter
    • EntityModel

Index

Constructors

constructor

Properties

Private _attributes

_attributes: object

Type declaration

  • [key: string]: any

Private _id

_id: string

Private _texture

_texture: Asset

Private _type

_type: string

Static defaultMaxListeners

defaultMaxListeners: number

Methods

addListener

  • addListener(event: string | symbol, listener: function): this

emit

  • emit(event: string | symbol, ...args: any[]): boolean

eventNames

  • eventNames(): Array<string | symbol>

getAttribute

  • getAttribute(key: string): any

getID

  • getID(): string

getMaxListeners

  • getMaxListeners(): number

getTexture

getType

  • getType(): string

hasAttribute

  • hasAttribute(key: string): boolean

listenerCount

  • listenerCount(type: string | symbol): number

listeners

  • listeners(event: string | symbol): Function[]

on

  • on(event: string | symbol, listener: function): this

once

  • once(event: string | symbol, listener: function): this

prependListener

  • prependListener(event: string | symbol, listener: function): this

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: function): this

removeAllListeners

  • removeAllListeners(event?: string | symbol): this

removeAttribute

  • removeAttribute(key: string): void

removeListener

  • removeListener(event: string | symbol, listener: function): this

setAttribute

  • setAttribute(key: string, value: any): void

setMaxListeners

  • setMaxListeners(n: number): this

setTexture

  • setTexture(asset: Asset): void

setType

  • setType(type: string): void

sync

  • sync(listener: any): void

Static listenerCount

  • listenerCount(emitter: EventEmitter, event: string | symbol): number

Generated using TypeDoc