Options
All
  • Public
  • Public/Protected
  • All
Menu

Class World

Hierarchy

  • World

Implements

Index

Constructors

constructor

Properties

createEntity

createEntity: Mock<Entity, [name: string]> = ...

entities

entities: Map<string, Entity> = ...

registerComponent

registerComponent: <C>(Component: RealComponentConstructor<C>, objectPool?: false | ObjectPool<C>) => World<Entity> = ...

Type declaration

registerSystem

registerSystem: (System: SystemConstructor<any>, attributes?: object) => World<Entity> = ...

Type declaration

    • (System: SystemConstructor<any>, attributes?: object): World<Entity>
    • Register a system.

      Parameters

      • System: SystemConstructor<any>

        Type of system to register

      • Optional attributes: object

      Returns World<Entity>

Methods

__getEntities

  • __getEntities(): Map<string, Entity>

Generated using TypeDoc