Comparing version 0.3.33 to 0.3.34
{ | ||
"name": "bitecs", | ||
"version": "0.3.33", | ||
"description": "Functional, minimal, data-driven, ultra-high performance ECS library written in Javascript", | ||
"version": "0.3.34", | ||
"description": "Functional, minimal, data-oriented, ultra-high performance ECS library written in Javascript", | ||
"license": "MPL-2.0", | ||
@@ -41,20 +41,20 @@ "repository": { | ||
"devDependencies": { | ||
"boxen": "^5.0.1", | ||
"boxen": "^6.2.1", | ||
"brotli-size": "^4.0.0", | ||
"c8": "^7.7.2", | ||
"chalk": "^2.4.2", | ||
"c8": "^7.10.0", | ||
"chalk": "^5.0.0", | ||
"dmd-readable": "^1.2.4", | ||
"esbuild": "^0.12.22", | ||
"fs-extra": "^8.1.0", | ||
"globby": "^11.0.1", | ||
"gradient-string": "^1.2.0", | ||
"gzip-size": "^6.0.0", | ||
"esbuild": "^0.14.5", | ||
"fs-extra": "^10.0.0", | ||
"globby": "^12.0.2", | ||
"gradient-string": "^2.0.0", | ||
"gzip-size": "^7.0.0", | ||
"human-readable": "^0.2.1", | ||
"jsdoc-to-markdown": "^7.0.1", | ||
"jsdoc-to-markdown": "^7.1.0", | ||
"minimist": "^1.2.5", | ||
"mocha": "^8.3.2", | ||
"ora": "^5.4.1", | ||
"mocha": "^9.1.3", | ||
"ora": "^6.0.1", | ||
"sloc": "^0.2.1", | ||
"typescript": "^4.3.5" | ||
"typescript": "^4.5.4" | ||
} | ||
} |
@@ -76,8 +76,9 @@ <h1 align="center"> | ||
const movementSystem = (world) => { | ||
const { time: { delta } } = world | ||
const ents = movementQuery(world) | ||
for (let i = 0; i < ents.length; i++) { | ||
const eid = ents[i] | ||
Position.x[eid] += Velocity.x[eid] | ||
Position.y[eid] += Velocity.y[eid] | ||
Position.z[eid] += Velocity.z[eid] | ||
Position.x[eid] += Velocity.x[eid] * delta | ||
Position.y[eid] += Velocity.y[eid] * delta | ||
Position.z[eid] += Velocity.z[eid] * delta | ||
} | ||
@@ -84,0 +85,0 @@ return world |
@@ -399,2 +399,15 @@ import assert, { strictEqual } from 'assert' | ||
}) | ||
it('should create EIDs when deserializing eid type properties with MAP mode even if the entity hasn\'t been created yet', () => { | ||
const world = createWorld() | ||
const EIDComponent = defineComponent({eid: Types.eid}) | ||
const eid1 = addEntity(world) | ||
const eid2 = addEntity(world) | ||
addComponent(world, EIDComponent, eid1) | ||
EIDComponent.eid[eid1] = eid2 | ||
const serialize = defineSerializer([EIDComponent]) | ||
const deserialize = defineDeserializer([EIDComponent]) | ||
const packet = serialize([eid1]) | ||
const [eid1Mapped] = deserialize(world, packet, DESERIALIZE_MODE.MAP) | ||
assert(EIDComponent.eid[eid1Mapped] != 0) | ||
}) | ||
}) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
290329
3220
120