summaryrefslogtreecommitdiff
path: root/dist/serpentity.js
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2014-08-20 09:27:23 -0500
committerBen Beltran <ben@nsovocal.com>2014-08-20 09:27:23 -0500
commit509e372f9ccbc49344493fdb36b2afb17103f4da (patch)
tree7f023e4d6c8a2109486716e5af36e2de392fb1dc /dist/serpentity.js
parent60a6915a0b24975e28a02b28e43d34f6dbb15625 (diff)
Normalizes API for entitiesv0.1.7
Diffstat (limited to 'dist/serpentity.js')
-rw-r--r--dist/serpentity.js4
1 files changed, 2 insertions, 2 deletions
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;
}