Esempio n. 1
0
 internal void SetWorld(EcsWorld world)
 {
     _world = world;
 }
Esempio n. 2
0
 internal EntityBuilder(EcsWorld world, uint id)
 {
     _world  = world;
     _entity = new Entity(id);
     _entity.Init(_world);
 }
Esempio n. 3
0
 internal void Init(EcsWorld world)
 {
     _world      = world;
     _components = world.ComponentTypes.ToDictionary(k => k, v => new HashSet <int>());
 }
Esempio n. 4
0
 internal EntityBuilder(EcsWorld world, Entity entity)
 {
     _entity = entity;
     _world  = world;
 }
Esempio n. 5
0
 public Entity(Dictionary <Type, HashSet <int> > components, EcsWorld world)
 {
     _components = components;
     _world      = world;
 }