public MapViewGenerator(IMeshGenerator meshGenerator, IOutlineDrawer outlineDrawer,
                         MonoBehaviourProvider monoBehaviourProvider)
 {
     _meshGenerator         = meshGenerator;
     _outlineDrawer         = outlineDrawer;
     _monoBehaviourProvider = monoBehaviourProvider;
 }
Beispiel #2
0
        public IMapView CreateMapView(IMapModel mapModel, IMeshGenerator meshGenerator, IOutlineDrawer outlineDrawer)
        {
            var outlineMaterial = _assetProvider.GetOutlineMaterial();
            var mapZonePrefab   = _assetProvider.GetMapZonePrefab();

            outlineDrawer.OutlineMaterial = outlineMaterial;

            IMapViewGenerator mapViewGenerator = new MapViewGenerator(meshGenerator, outlineDrawer, _monoProvider);
            var mapView = mapViewGenerator.CreateMapView(mapZonePrefab, mapModel);

            return(mapView);
        }