Comparing version 0.2.10 to 0.2.11
{ | ||
"name": "bitecs", | ||
"version": "0.2.10", | ||
"version": "0.2.11", | ||
"description": "Tiny, data-driven, high performance ECS library written in Javascript", | ||
@@ -5,0 +5,0 @@ "license": "MPL-2.0", |
@@ -30,5 +30,7 @@ import { performance} from'perf_hooks' | ||
const Velocity = defineComponent(Vector2) | ||
registerComponents(world, [Position, Velocity]) | ||
const a = defineComponent(new Map()) | ||
registerComponents(world, [Position, Velocity, a]) | ||
const query = defineQuery([Changed(Position),Velocity]) | ||
const queryA = defineQuery([a]) | ||
const serialize = defineSerializer([Changed(Position)]) | ||
@@ -42,2 +44,3 @@ const deserialize = defineDeserializer([Position,Velocity]) | ||
addComponent(world, Velocity, eid) | ||
addComponent(world, a, eid) | ||
Position.x[eid]++ | ||
@@ -47,2 +50,5 @@ Position.y[eid]++ | ||
console.log(queryA(world)) | ||
let then | ||
@@ -49,0 +55,0 @@ |
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
223089
1438