Rooms, items and some player stuff

This commit is contained in:
2021-11-04 20:58:37 +01:00
parent 36bb9264b3
commit a745ff299e
277 changed files with 14665 additions and 5 deletions

24
src/framework/world/ecs-world.d.ts vendored Normal file
View File

@@ -0,0 +1,24 @@
import { World } from '../ecs/index';
import { Game } from '../game';
import { Component } from '../ecs/component';
import { System } from '../ecs/system';
import { BaseEntity, Entity } from '../ecs/entity';
import { Query } from '../ecs/query';
import { World as IWorld } from '.';
export declare class ECSWorld implements IWorld {
instance: Game;
id: string;
world: World;
running: boolean;
constructor(instance: Game);
update(): void;
updateDraw(): boolean;
createEntity(components: Array<Component>): BaseEntity;
createComponent(props: any): Component;
createSystem(systemExecutor: Function): void;
addSystem(system: System): void;
addEntity(entity: BaseEntity): void;
removeEntity(entity: BaseEntity): void;
createQuery(include: Array<Component>, exclude: Array<Component>): Query;
extendEntity(entity: Entity, components: Array<Component>): BaseEntity;
}