Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitecs

Package Overview
Dependencies
Maintainers
1
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitecs - npm Package Compare versions

Comparing version 0.3.10-2 to 0.3.10-3

2

dist/index.d.ts

@@ -73,3 +73,3 @@ declare module 'bitecs' {

export type Query = (world: IWorld, clearDiff: Boolean = true) => number[]
export type Query = (world: IWorld, clearDiff?: Boolean) => number[]

@@ -76,0 +76,0 @@ export type System = (world: IWorld) => IWorld

@@ -528,3 +528,2 @@ const TYPES_ENUM = {

const $entityMasks = Symbol('entityMasks');
const $entityEnabled = Symbol('entityEnabled');
const $entitySparseSet = Symbol('entitySparseSet');

@@ -621,14 +620,16 @@ const $entityArray = Symbol('entityArray');

query[$queryComponents].forEach(c => {
if (!world[$componentMap].has(c)) registerComponent(world, c);
if (typeof c === 'function') {
const comp = c();
if (!world[$componentMap].has(comp)) registerComponent(world, comp);
if (typeof c === 'function') {
if (c.name === 'QueryNot') {
notComponents.push(c());
notComponents.push(comp);
}
if (c.name === 'QueryChanged') {
changedComponents.push(c());
components.push(c());
changedComponents.push(comp);
components.push(comp);
}
} else {
if (!world[$componentMap].has(c)) registerComponent(world, c);
components.push(c);

@@ -917,2 +918,3 @@ }

const $bitflag = Symbol('bitflag');
const $archetypes = Symbol('archetypes');
const worlds = [];

@@ -941,2 +943,3 @@ const resizeWorlds = size => {

world[$entityMasks] = [new Uint32Array(size)];
world[$archetypes] = [];
if (world[$entityArray]) world[$entityArray].forEach(eid => removeEntity(world, eid));

@@ -954,3 +957,3 @@ world[$entitySparseSet] = SparseSet();

delete world[$size];
delete world[$entityEnabled];
delete world[$archetypes];
delete world[$entityMasks];

@@ -957,0 +960,0 @@ delete world[$entityArray];

@@ -532,3 +532,2 @@ 'use strict';

const $entityMasks = Symbol('entityMasks');
const $entityEnabled = Symbol('entityEnabled');
const $entitySparseSet = Symbol('entitySparseSet');

@@ -625,14 +624,16 @@ const $entityArray = Symbol('entityArray');

query[$queryComponents].forEach(c => {
if (!world[$componentMap].has(c)) registerComponent(world, c);
if (typeof c === 'function') {
const comp = c();
if (!world[$componentMap].has(comp)) registerComponent(world, comp);
if (typeof c === 'function') {
if (c.name === 'QueryNot') {
notComponents.push(c());
notComponents.push(comp);
}
if (c.name === 'QueryChanged') {
changedComponents.push(c());
components.push(c());
changedComponents.push(comp);
components.push(comp);
}
} else {
if (!world[$componentMap].has(c)) registerComponent(world, c);
components.push(c);

@@ -921,2 +922,3 @@ }

const $bitflag = Symbol('bitflag');
const $archetypes = Symbol('archetypes');
const worlds = [];

@@ -945,2 +947,3 @@ const resizeWorlds = size => {

world[$entityMasks] = [new Uint32Array(size)];
world[$archetypes] = [];
if (world[$entityArray]) world[$entityArray].forEach(eid => removeEntity(world, eid));

@@ -958,3 +961,3 @@ world[$entitySparseSet] = SparseSet();

delete world[$size];
delete world[$entityEnabled];
delete world[$archetypes];
delete world[$entityMasks];

@@ -961,0 +964,0 @@ delete world[$entityArray];

@@ -73,3 +73,3 @@ declare module 'bitecs' {

export type Query = (world: IWorld, clearDiff: Boolean = true) => number[]
export type Query = (world: IWorld, clearDiff?: Boolean) => number[]

@@ -76,0 +76,0 @@ export type System = (world: IWorld) => IWorld

{
"name": "bitecs",
"version": "0.3.10-2",
"version": "0.3.10-3",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc