Skip to content

Commit 9997ae5

Browse files
committed
Removed entity declaration since it does not belong to this ECS lib
1 parent 448ff10 commit 9997ae5

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/World.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import System from "./System.ts";
44
import Query, { IQueryFilters } from "./Query.ts";
55
import Component from "./Component.ts";
66
import ComponentRegistry from "./ComponentRegistry.ts";
7-
// import { EntityDeclaration } from "@serbanghita-gamedev/assets";
87

98
export type WorldStartOptions = {
109
// Limit the FPS.
@@ -65,21 +64,6 @@ export default class World {
6564
return query;
6665
}
6766

68-
// public createEntityFromDeclaration(id: string, entityDeclaration: EntityDeclaration): Entity {
69-
// // Create the entity and assign it to the world.
70-
// const entity = this.createEntity(id);
71-
//
72-
// // Add Component(s) to the Entity.
73-
// for (const name in entityDeclaration.components) {
74-
// const componentDeclaration = this.declarations.components.getComponent(name);
75-
// const props = entityDeclaration.components[name];
76-
//
77-
// entity.addComponent(componentDeclaration, props);
78-
// }
79-
//
80-
// return entity;
81-
// }
82-
8367
public createEntity(id: string): Entity {
8468
if (this.entities.has(id)) {
8569
throw new Error(`Entity with the id "${id}" already exists.`);

0 commit comments

Comments
 (0)