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

type

type: string

Static defaultMaxListeners

defaultMaxListeners: number

Accessors

ID

  • get ID(): string

texture

  • get texture(): Asset
  • set texture(asset: Asset): void

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

getMaxListeners

  • getMaxListeners(): number

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

sync

  • sync(listener: any): void

Static listenerCount

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

Generated using TypeDoc