示例#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);
 }