super-ecs
Version:
Entity Component System library
28 lines (27 loc) • 647 B
TypeScript
import type { World } from './world/index.js';
import type { TickerDataLike } from './types/index.js';
/**
* The system is responsible for updating the entities.
*/
export declare class System {
private _world;
/**
* Called when system is added to the world
* @param world
*/
addedToWorld(world: World): void;
/**
* Called when system is removed from the world
* @param world
*/
removedFromWorld(world: World): void;
/**
* Update loop
* @param tickerData
*/
update(tickerData: TickerDataLike): void;
/**
* Reference to the world
*/
get world(): World;
}