Options
All
  • Public
  • Public/Protected
  • All
Menu

uecs

Index

Classes

Interfaces

Type aliases

Variables

Type aliases

Entity

Entity: number

An opaque identifier used to access component arrays

ViewCallback

ViewCallback<T>: (entity: Entity, ...components: InstanceTypeTuple<T>) => false | void

The callback passed into a View, generated by a world.

If this callback returns false, the iteration will halt.

Type parameters

Type declaration

    • (entity: Entity, ...components: InstanceTypeTuple<T>): false | void
    • Parameters

      • entity: Entity
      • Rest ...components: InstanceTypeTuple<T>

      Returns false | void

Variables

Const Null

Null: Entity = -1

The Null entity can be used to initialiaze a variable which is meant to hold an entity without actually using null.

Generated using TypeDoc