Show / Hide Table of Contents

# Class EntityTypesMap<T>

Entity types map that will be used for EntityManager

##### Inheritance

object
EntityTypesMap
EntityTypesMap<T>

##### Inherited Members

EntityTypesMap.EvaluateEntityClassDataHash()

###### Namespace: LiteEntitySystem

###### Assembly: LiteEntitySystem.dll

##### Syntax

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

##### Type Parameters

Name | Description
--- | ---
T |

### Methods

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

Register new entity type that will be used in game

##### Declaration

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

##### Parameters

Type | Name | Description
--- | --- | ---
T | id | Enum value that will describe entity class id
EntityConstructor<TEntity> | constructor | Constructor of entity

##### Returns

Type | Description
--- | ---
EntityTypesMap<T> |

##### Type Parameters

Name | Description
--- | ---
TEntity | Type of entity