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