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
-
objectEntityTypesMap<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
TEnum value that will describe entity class id
constructor
EntityConstructor<TEntity>Constructor of entity
Returns
Type Parameters
TEntity
Type of entity