Пример #1
0
 public Entity(params IComponent[] components)
 {
     Id = Guid.NewGuid();
     foreach (IComponent component in components)
     {
         EntityInfrastructureManager.AddComponent(this, component);
     }
     EntityInfrastructureManager.AddEntity(this);
 }
Пример #2
0
 public Entity(Guid Id)
 {
     this.Id = Id;
     EntityInfrastructureManager.AddEntity(this);
 }
Пример #3
0
 public Entity()
 {
     Id = Guid.NewGuid();
     EntityInfrastructureManager.AddEntity(this);
 }