public AutoMapperConfigurationStartupTask(IConfigurationProvider configurationProvider, IProfileExpression profileExpression, IMapCreator[] mapCreators)
        {
            if (configurationProvider == null)
            {
                throw new ArgumentNullException("configurationProvider");
            }

            if (profileExpression == null)
            {
                throw new ArgumentNullException("profileExpression");
            }

            if (mapCreators == null)
            {
                throw new ArgumentNullException("mapCreators");
            }

            if (mapCreators.Length == 0)
            {
                throw new ArgumentException("Cannot be an empty array", "mapCreators");
            }

            _configurationProvider = configurationProvider;
            _profileExpression = profileExpression;
            _mapCreators = mapCreators;
        }
Ejemplo n.º 2
0
        public void LoadLevel(int level)
        {
            if (AssemblyConstants.Levels.Length < level)
            {
                throw new ArgumentOutOfRangeException($"There is no level {level}");
            }

            _mapCreator = _diContainer.Resolve <IMapCreator>();
            var labyrinthReader = _diContainer.Resolve <ILabyrinthReader>();

            (labyrinthReader as IResourceLabyrinthReader)?.Initialize(AssemblyConstants.AssemblyName,
                                                                      AssemblyConstants.Levels[level - 1]);
            _mapCreator.Initialize(labyrinthReader);
        }
Ejemplo n.º 3
0
        public void FindPath(IMapCreator creator)
        {
            _map = creator.CreateMap();

            StartSearching();
        }
Ejemplo n.º 4
0
 public GetLayers(MgResourceService resSvc, string vm, IMapCreator creator)
     : base(resSvc, vm, creator)
 {
 }
Ejemplo n.º 5
0
 public RemoveGroup(MgResourceService resSvc, string vm, IMapCreator creator)
     : base(resSvc, vm, creator)
 {
 }
Ejemplo n.º 6
0
 public GetDataExtent(MgResourceService resSvc, string vm, IMapCreator creator)
     : base(resSvc, vm, creator)
 {
 }
 public MapCreatorExtendedAction(IMapCreator mapCreator)
 {
     _mapCreator = mapCreator;
 }
 public AutoMapperConfigurator(IConfiguration configuration, IMapCreator[] mapCreators)
 {
     _configuration = ArgumentValidation.IsNotNull(configuration, "configuration");
     _mapCreators = ArgumentValidation.IsNotNull(mapCreators, "mapCreators");
 }
Ejemplo n.º 9
0
 public AddLayerGroup(MgResourceService resSvc, string vm, IMapCreator creator)
     : base(resSvc, vm, creator)
 {
 }
Ejemplo n.º 10
0
 public IsLayerVisible(MgResourceService resSvc, string vm, IMapCreator creator)
     : base(resSvc, vm, creator)
 {
 }
Ejemplo n.º 11
0
 public GetLegendLabel(MgResourceService resSvc, string vm, IMapCreator creator)
     : base(resSvc, vm, creator)
 {
 }
Ejemplo n.º 12
0
 public GetDisplayInLegend(MgResourceService resSvc, string vm, IMapCreator creator)
     : base(resSvc, vm, creator)
 {
 }
Ejemplo n.º 13
0
 private void Awake()
 {
     this._mapCreator = FindObjectOfType <MapCreator>() ?? this.gameObject.AddComponent <MapCreator>();
     this._text       = FindObjectOfType <TextMeshProUGUI>() ?? throw new ArgumentNullException(nameof(this._text));
 }
 public void AddFirst(IMapCreator mapCreator)
 {
     _extendedActions.Insert(0, new MapCreatorExtendedAction(mapCreator));
 }
 public void Add(IMapCreator mapCreator)
 {
     _extendedActions.Add(new MapCreatorExtendedAction(mapCreator));
 }
Ejemplo n.º 16
0
 protected MapLayerOperationExecutor(MgResourceService resSvc, string unitTestVm, IMapCreator creator)
     : base(typeof(T).Name.ToUpper(), ApiTypes.Platform, unitTestVm)
 {
     _resourceService = resSvc;
     _creator         = creator;
 }
Ejemplo n.º 17
0
 private Map Generate(IMapCreator creator)
 {
     return(creator.Create());
 }
Ejemplo n.º 18
0
 public GetCoordinateSystem(MgResourceService resSvc, string vm, IMapCreator creator)
     : base(resSvc, vm, creator)
 {
 }
Ejemplo n.º 19
0
 public GetViewScale(MgResourceService resSvc, string vm, IMapCreator creator)
     : base(resSvc, vm, creator)
 {
 }
Ejemplo n.º 20
0
 public void FindPath(IMapCreator mapCreator)
 {
     throw new NotImplementedException();
 }