@awesome-ecs/abstract 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { IEntity } from "../../entities/entity";
|
|
1
2
|
import { IEntitySnapshot } from "../../entities/entity-snapshot";
|
|
3
|
+
import { IJsonSerializer } from "../../utils/json-serializer";
|
|
2
4
|
/**
|
|
3
5
|
* The ISystemContextSnapshot is the access point for Snapshot related APIs.
|
|
4
6
|
* The access is made in a SystemMiddleware through the provided ISystemPipelineContext.
|
|
5
7
|
*/
|
|
6
8
|
export interface ISystemContextSnapshot {
|
|
7
9
|
readonly appliedSnapshot: IEntitySnapshot;
|
|
10
|
+
readonly serializer: IJsonSerializer;
|
|
8
11
|
applySnapshot(snapshot: IEntitySnapshot): void;
|
|
9
|
-
createSnapshot(): IEntitySnapshot;
|
|
12
|
+
createSnapshot(entity?: IEntity): IEntitySnapshot;
|
|
10
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awesome-ecs/abstract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "A comprehensive Entity-Component-System (ECS) Architecture implementation. Abstract components.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"url": "https://github.com/andreicojocaru/awesome-ecs/issues"
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/andreicojocaru/awesome-ecs#readme",
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "0f60d8d0dc38b79229028714b2a55009589bd511"
|
|
36
36
|
}
|