예제 #1
0
파일: Entity.cs 프로젝트: bnwasteland/diana
 public Entity(World world, int id)
 {
     _guid = Guid.NewGuid();
     _world = world;
     _id = id;
     _componentManager = world.ComponentManager;
     _systemBits = new BitArray(32);
     _componentBits = new BitArray(32);
 }
예제 #2
0
 public EntityBuilder(World world)
 {
     _world = world;
     _entityManager = world.EntityManager;
     _componentManager = world.ComponentManager;
 }