Comparing version 0.3.20 to 0.3.21
@@ -26,4 +26,2 @@ | ||
defineSystem, | ||
defineSerializer, | ||
@@ -178,2 +176,4 @@ defineDeserializer, | ||
Wrapping a component with the `Change` modifier creates a query which returns entities who are marked as changed since last call of the function: | ||
⚠ This performs an expensive diff. Use manual dirty flags for more performant mutation detection. | ||
```js | ||
@@ -329,2 +329,4 @@ const changedPositionQuery = defineQuery([ Changed(Position) ]) | ||
whose component state has changed since the last call of the function: | ||
ℹ Unlike queries, using `Changed` with serializers actually *improves* performance (less iterations). | ||
```js | ||
@@ -358,2 +360,2 @@ const serializeOnlyChangedPositions = defineSerializer([Changed(Position)]) | ||
deserialize(world, packet, mode) | ||
``` | ||
``` |
{ | ||
"name": "bitecs", | ||
"version": "0.3.20", | ||
"version": "0.3.21", | ||
"description": "Functional, minimal, data-driven, ultra-high performance ECS library written in Javascript", | ||
@@ -5,0 +5,0 @@ "license": "MPL-2.0", |
@@ -65,2 +65,3 @@ # 👾 bitECS 👾 [![npm](https://img.shields.io/npm/v/bitecs.svg)](https://www.npmjs.com/package/bitecs) [![Minzipped](https://badgen.net/bundlephobia/minzip/bitecs)](https://www.npmjs.com/package/bitecs) [![npm](https://img.shields.io/npm/dt/bitecs.svg)](https://www.npmjs.com/package/bitecs) [![License](https://badgen.net/npm/license/bitecs)](https://www.npmjs.com/package/bitecs) | ||
} | ||
return world | ||
} | ||
@@ -75,2 +76,3 @@ | ||
time.then = now | ||
return world | ||
} | ||
@@ -77,0 +79,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
96
252266
2619