Skip to content

1681-engine / index / FieldsType

Interface: FieldsType<S> ​

Defined in: src/ecs/fields.ts:44

A component of numeric fields. Its value in each/query is the slot index.

Extends ​

Type Parameters ​

Type Parameter
S extends FieldSpec

Properties ​

__type? ​

ts
readonly optional __type?: number;

Defined in: src/ecs/World.ts:29

Phantom field carrying T; never set.

Inherited from ​

ComponentType.__type


fields ​

ts
readonly fields: S;

Defined in: src/ecs/fields.ts:45


id ​

ts
readonly id: number;

Defined in: src/ecs/World.ts:26

Inherited from ​

ComponentType.id


name ​

ts
readonly name: string;

Defined in: src/ecs/World.ts:27

Inherited from ​

ComponentType.name

Released under the MIT License.