Comparing version 0.2.31 to 0.3.0
@@ -631,7 +631,7 @@ const TYPES_ENUM = { | ||
q.enter(q.entered.shift()); | ||
} else q.entered.shift(); | ||
} else q.entered.length = 0; | ||
while (q.exited.length) if (q.exit) { | ||
q.exit(q.exited.shift()); | ||
} else q.exited.shift(); | ||
} else q.exited.length = 0; | ||
}; | ||
@@ -756,6 +756,8 @@ | ||
const hasComponent = (world, component, eid) => { | ||
const registeredComponent = world[$componentMap].get(component); | ||
if (!registeredComponent) return; | ||
const { | ||
generationId, | ||
bitflag | ||
} = world[$componentMap].get(component); | ||
} = registeredComponent; | ||
const mask = world[$entityMasks][generationId][eid]; | ||
@@ -762,0 +764,0 @@ return (mask & bitflag) === bitflag; |
@@ -635,7 +635,7 @@ 'use strict'; | ||
q.enter(q.entered.shift()); | ||
} else q.entered.shift(); | ||
} else q.entered.length = 0; | ||
while (q.exited.length) if (q.exit) { | ||
q.exit(q.exited.shift()); | ||
} else q.exited.shift(); | ||
} else q.exited.length = 0; | ||
}; | ||
@@ -760,6 +760,8 @@ | ||
const hasComponent = (world, component, eid) => { | ||
const registeredComponent = world[$componentMap].get(component); | ||
if (!registeredComponent) return; | ||
const { | ||
generationId, | ||
bitflag | ||
} = world[$componentMap].get(component); | ||
} = registeredComponent; | ||
const mask = world[$entityMasks][generationId][eid]; | ||
@@ -766,0 +768,0 @@ return (mask & bitflag) === bitflag; |
{ | ||
"name": "bitecs", | ||
"version": "0.2.31", | ||
"version": "0.3.0", | ||
"description": "Functional, minimal, data-driven, ultra-high performance ECS library written in Javascript", | ||
@@ -5,0 +5,0 @@ "license": "MPL-2.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
231725
1830