Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ComponentStore

Index

Constructors

constructor

Properties

components

components: Array<any>

entities

entities: Array<Entity>

indices

indices: Array<number>

name

name: string

Optional oncreate

oncreate: (Entity: any, any: any) => void

Type declaration

    • (Entity: any, any: any): void
    • Parameters

      • Entity: any
      • any: any

      Returns void

Optional ondestroy

ondestroy: (Entity: any, any: any) => void

Type declaration

    • (Entity: any, any: any): void
    • Parameters

      • Entity: any
      • any: any

      Returns void

size

size: number

Methods

assign

  • assign(entity: Entity, component: any): void
  • Parameters

    • entity: Entity
    • component: any

    Returns void

clear

  • clear(): void

contains

  • contains(entity: Entity): boolean

each

  • each(f: (c: any, e: Entity) => any): void
  • Parameters

    • f: (c: any, e: Entity) => any
        • Parameters

          Returns any

    Returns void

eachComponent

  • eachComponent(f: (c: any) => any): void
  • Parameters

    • f: (c: any) => any
        • (c: any): any
        • Parameters

          • c: any

          Returns any

    Returns void

eachEntity

  • eachEntity(f: (e: Entity) => any): void

get

getComponents

  • getComponents(): any[]

insert

  • insert(entity: Entity, component: any): void
  • Parameters

    • entity: Entity
    • component: any

    Returns void

remove

  • remove(entity: Entity): void

replace

  • replace(entity: Entity, component: any): void
  • Parameters

    • entity: Entity
    • component: any

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method

Generated using TypeDoc