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.0.5 to 0.0.6

2

package.json
{
"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 @@

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