Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

priority: number = 99

System can execute in priority order, by default all systems are priority 0. Lower values indicated higher priority. For a system to execute before all other a lower priority value (-1 for example) must be set. For a system to execute after all other a higher priority value (10 for example) must be set.

systemType: Update = SystemType.Update

Determine whether the system is called in the SystemType.Update or the SystemType.Draw phase. Update is first, then Draw.

types: readonly ["ex.transform", "ex.isometricentity"] = ...

The types of entities that this system operates on For example ['transform', 'motion']

Methods

  • initialize(engine: Scene<unknown>): void
  • postupdate(engine: Scene<unknown>, elapsedMs: number): void
  • preupdate(engine: Scene<unknown>, elapsedMs: number): void
  • update(entities: Entity[], _delta: number): void