File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import System from "./System.ts";
44import Query , { IQueryFilters } from "./Query.ts" ;
55import Component from "./Component.ts" ;
66import ComponentRegistry from "./ComponentRegistry.ts" ;
7- // import { EntityDeclaration } from "@serbanghita-gamedev/assets";
87
98export 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.` ) ;
You can’t perform that action at this time.
0 commit comments