Comparing version 0.3.7 to 0.3.8
@@ -69,3 +69,3 @@ const TYPES_ENUM = { | ||
const length = store[0].length; | ||
const indexType = length < UNSIGNED_MAX.uint8 ? 'ui8' : length < UNSIGNED_MAX.uint16 ? 'ui16' : 'ui32'; | ||
const indexType = length <= UNSIGNED_MAX.uint8 ? 'ui8' : length <= UNSIGNED_MAX.uint16 ? 'ui16' : 'ui32'; | ||
const arrayCount = metadata[$storeArrayCounts][type]; | ||
@@ -501,3 +501,3 @@ const summedLength = Array(arrayCount).fill(0).reduce((a, p) => a + length, 0); // for threaded impl | ||
const $entityIndices = Symbol('entityIndices'); | ||
const NONE$1 = 2 ** 32; | ||
const NONE$1 = 2 ** 32 - 1; | ||
let defaultSize = 100000; // need a global EID cursor which all worlds and all components know about | ||
@@ -593,3 +593,3 @@ // so that world entities can posess entire rows spanning all component tables | ||
const $queryComponents = Symbol('queryComponents'); | ||
const NONE = 2 ** 32; | ||
const NONE = 2 ** 32 - 1; | ||
const enterQuery = query => world => { | ||
@@ -596,0 +596,0 @@ if (!world[$queryMap].has(query)) registerQuery(world, query); |
@@ -73,3 +73,3 @@ 'use strict'; | ||
const length = store[0].length; | ||
const indexType = length < UNSIGNED_MAX.uint8 ? 'ui8' : length < UNSIGNED_MAX.uint16 ? 'ui16' : 'ui32'; | ||
const indexType = length <= UNSIGNED_MAX.uint8 ? 'ui8' : length <= UNSIGNED_MAX.uint16 ? 'ui16' : 'ui32'; | ||
const arrayCount = metadata[$storeArrayCounts][type]; | ||
@@ -505,3 +505,3 @@ const summedLength = Array(arrayCount).fill(0).reduce((a, p) => a + length, 0); // for threaded impl | ||
const $entityIndices = Symbol('entityIndices'); | ||
const NONE$1 = 2 ** 32; | ||
const NONE$1 = 2 ** 32 - 1; | ||
let defaultSize = 100000; // need a global EID cursor which all worlds and all components know about | ||
@@ -597,3 +597,3 @@ // so that world entities can posess entire rows spanning all component tables | ||
const $queryComponents = Symbol('queryComponents'); | ||
const NONE = 2 ** 32; | ||
const NONE = 2 ** 32 - 1; | ||
const enterQuery = query => world => { | ||
@@ -600,0 +600,0 @@ if (!world[$queryMap].has(query)) registerQuery(world, query); |
{ | ||
"name": "bitecs", | ||
"version": "0.3.7", | ||
"version": "0.3.8", | ||
"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
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
265451