@awesome-ecs/abstract 0.13.1 → 0.13.2
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,14 +1,16 @@
|
|
|
1
1
|
import { IdentityComponent } from "../components/identity-component";
|
|
2
2
|
import { ComponentTypeUid, IComponent } from "../components/component";
|
|
3
3
|
import { IEntityProxy } from "./entity-proxies";
|
|
4
|
+
import { BooleanProps } from "../utils/types";
|
|
4
5
|
export type EntityTypeUid = string | number;
|
|
5
6
|
export type EntityUid = string | number;
|
|
6
7
|
/**
|
|
7
8
|
* The `IEntityModel` represents the basic identity information about the current `IEntity`.
|
|
8
9
|
* It's mandatory for each Entity, and it contains the minimal-required information needed for instantiating the Entity.
|
|
9
10
|
*/
|
|
10
|
-
export interface IEntityModel {
|
|
11
|
+
export interface IEntityModel<TFeatures extends BooleanProps<TFeatures> = unknown> {
|
|
11
12
|
readonly uid: EntityUid;
|
|
13
|
+
readonly features?: TFeatures;
|
|
12
14
|
}
|
|
13
15
|
/**
|
|
14
16
|
* The `IEntity` is basically a container of Components and Entity Proxies.
|
package/dist/utils/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awesome-ecs/abstract",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
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",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"url": "https://github.com/andreicojocaru/awesome-ecs/issues"
|
|
34
34
|
},
|
|
35
35
|
"homepage": "https://github.com/andreicojocaru/awesome-ecs#readme",
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "b1963b135e9d5598f6b731affd9a8bd6bf58551c"
|
|
37
37
|
}
|