Comparing version 4.0.3 to 4.0.4
@@ -17,5 +17,4 @@ 'use strict'; | ||
// ColSet = require('collections/set.js'), | ||
ColSet = Set, | ||
SortedArray = require('collections/sorted-array.js'); | ||
// Set = require('collections/set.js'), | ||
SortedArray = require('collections/sorted-array.js'); | ||
@@ -37,3 +36,3 @@ //user imports | ||
this._subStates = new Dict({ | ||
'default': new ColSet() | ||
'default': new Set() | ||
}); | ||
@@ -76,3 +75,3 @@ | ||
value: function getEntitySet() { | ||
return new ColSet(this._entities.keys()); | ||
return new Set(this._entities.keys()); | ||
} | ||
@@ -266,3 +265,3 @@ | ||
if (!this.hasComponent(componentName)) { | ||
this._entitiesByComponent.set(componentName, new ColSet()); | ||
this._entitiesByComponent.set(componentName, new Set()); | ||
} | ||
@@ -319,3 +318,3 @@ | ||
} | ||
this._subStates.set(name, new ColSet()); | ||
this._subStates.set(name, new Set()); | ||
@@ -322,0 +321,0 @@ if (entities) { |
{ | ||
"name": "sam-ecs", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "A specialized entity component system", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
92961
2332