Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "bitecs", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Tiny, data-driven, high performance ECS library written in Javascript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -88,2 +88,5 @@ import DataManager from './DataManager.js' | ||
// set values if any | ||
componentManager._set(eid, values) | ||
// then, add to systems that match the entity bitmask | ||
@@ -97,11 +100,7 @@ for(let s in registry.systems) { | ||
// zero out each property value | ||
componentManager._reset(eid) | ||
// set values if any | ||
componentManager._set(eid, values) | ||
} | ||
const _removeComponent = (name, eid) => { | ||
let componentManager = registry.components[name] | ||
@@ -111,3 +110,3 @@ if(!(entities[eid] & componentManager._bitflag)) return | ||
// first, remove flag from entity bitmask | ||
entities[eid] &= ~registry.components[name]._bitflag | ||
entities[eid] &= ~componentManager._bitflag | ||
@@ -120,2 +119,5 @@ // then, remove from systems that no longer match the entity bitmask | ||
} | ||
// zero out each property value | ||
componentManager._reset(eid) | ||
} | ||
@@ -122,0 +124,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25870
595