Comparing version 0.2.11 to 0.2.12
@@ -585,3 +585,3 @@ const TYPES_ENUM = { | ||
const notMasks = notComponents.map(c => world[$componentMap].get(c)).reduce(reduceBitmasks, {}); | ||
const flatProps = components.map(c => !ArrayBuffer.isView(c) ? c._flatten() : [c]).reduce((a, v) => a.concat(v), []); | ||
const flatProps = components.map(c => c._flatten ? c._flatten() : [c]).reduce((a, v) => a.concat(v), []); | ||
Object.assign(world[$queryMap].get(query), { | ||
@@ -679,3 +679,3 @@ entities, | ||
const $deferredComponentRemovals = Symbol('de$deferredComponentRemovals'); | ||
const defineComponent = (schema, n) => alloc(schema, n); | ||
const defineComponent = schema => schema.constructor.name === 'Map' ? schema : alloc(schema); | ||
const incrementBitflag = world => { | ||
@@ -682,0 +682,0 @@ world[$bitflag] *= 2; |
@@ -589,3 +589,3 @@ 'use strict'; | ||
const notMasks = notComponents.map(c => world[$componentMap].get(c)).reduce(reduceBitmasks, {}); | ||
const flatProps = components.map(c => !ArrayBuffer.isView(c) ? c._flatten() : [c]).reduce((a, v) => a.concat(v), []); | ||
const flatProps = components.map(c => c._flatten ? c._flatten() : [c]).reduce((a, v) => a.concat(v), []); | ||
Object.assign(world[$queryMap].get(query), { | ||
@@ -683,3 +683,3 @@ entities, | ||
const $deferredComponentRemovals = Symbol('de$deferredComponentRemovals'); | ||
const defineComponent = (schema, n) => alloc(schema, n); | ||
const defineComponent = schema => schema.constructor.name === 'Map' ? schema : alloc(schema); | ||
const incrementBitflag = world => { | ||
@@ -686,0 +686,0 @@ world[$bitflag] *= 2; |
{ | ||
"name": "bitecs", | ||
"version": "0.2.11", | ||
"version": "0.2.12", | ||
"description": "Tiny, data-driven, 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
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
223195