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