X-Git-Url: https://git.r.bdr.sh/rbdr/serpentity/blobdiff_plain/60a6915a0b24975e28a02b28e43d34f6dbb15625..bf8f1394a3b0fc0213ac069aa65b2407f1d0d090:/dist/serpentity.js?ds=inline diff --git a/dist/serpentity.js b/dist/serpentity.js index 3522b06..1f9b250 100644 --- a/dist/serpentity.js +++ b/dist/serpentity.js @@ -50,7 +50,7 @@ eventually be consumed by "Systems" You can add components to entities by using the add method: - entity.add(new PositionComponent()); + entity.addComponent(new PositionComponent()); Systems can refer to entities by requesting nodes. @@ -287,7 +287,7 @@ Class(Serpentity, "Entity")({ * * returns true if added, false if already present */ - add : function add(component) { + addComponent : function addComponent(component) { if (this._componentKeys.indexOf(component.constructor) >= 0) { return false; }