public BatchGenerator(ItemContainerGenerator factory) { _factory = factory; _factory._isGeneratingBatches = true; _factory.SetStatus(GeneratorStatus.GeneratingContainers); }
//------------------------------------------------------ // // Constructors // //------------------------------------------------------ internal Generator(ItemContainerGenerator factory, GeneratorPosition position, GeneratorDirection direction, bool allowStartAtRealizedItem) { _factory = factory; _direction = direction; _factory.MapChanged += new MapChangedHandler(OnMapChanged); _factory.MoveToPosition(position, direction, allowStartAtRealizedItem, ref _cachedState); _done = (_factory.ItemsInternal.Count == 0); _factory.SetStatus(GeneratorStatus.GeneratingContainers); }