Table of Contents

Class EntityTypesMap<T>

Namespace
LiteEntitySystem
Assembly
LiteEntitySystem.dll

Entity types map that will be used for EntityManager

public sealed class EntityTypesMap<T> : EntityTypesMap where T : unmanaged, Enum

Type Parameters

T
Inheritance
object
EntityTypesMap<T>
Inherited Members

Methods

Register<TEntity>(T, EntityConstructor<TEntity>)

Register new entity type that will be used in game

public EntityTypesMap<T> Register<TEntity>(T id, EntityConstructor<TEntity> constructor) where TEntity : InternalEntity

Parameters

id T

Enum value that will describe entity class id

constructor EntityConstructor<TEntity>

Constructor of entity

Returns

EntityTypesMap<T>

Type Parameters

TEntity

Type of entity