Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:EntityComponentSystem.EntityManagement.EntityManager"/> class.
 /// </summary>
 /// <param name="numOfEntities">Number of entities.</param>
 public EntityManager(uint numOfEntities)
 {
     MAX_NUM_OF_ENTITIES = numOfEntities;
     idCounter           = 0;
     deadEntityList      = new List <uint>();
     entities            = new Entity[MAX_NUM_OF_ENTITIES];
     handleManager       = new HandleManager();
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:EntityComponentSystem.EntityManagement.EntityHandle"/> class.
 /// </summary>
 /// <param name="parent">Parent.</param>
 internal EntityHandle(HandleManager parent)
 {
     this.parent = parent;
     entity      = null;
     phase       = -1;
 }