public LevelGridMeshController(IBlockMeshViewFactory blockMeshViewFactory,
                                ILevelGridMeshBuilder gridMeshBuilder,
                                Material gridMaterial,
                                ILevelModel levelModel)
 {
     _blockMeshViewFactory = blockMeshViewFactory;
     _gridMeshBuilder      = gridMeshBuilder;
     _gridMaterial         = gridMaterial;
     _levelModel           = levelModel;
 }
Example #2
0
        public LevelDrawingController(ILevelModel levelModel,
                                      IBlockMeshViewFactory blockMeshFactory,
                                      IBlockMeshBuilder blockMeshBuilder)
        {
            _levelModel       = levelModel;
            _blockMeshFactory = blockMeshFactory;
            _blockMeshBuilder = blockMeshBuilder;

            _levelModel.OnBlockAdded   += OnBlockAdded;
            _levelModel.OnBlockRemoved += OnBlockRemoved;
            _levelModel.OnBlockMoved   += OnBlockMoved;
        }
 public BlockViewBuilder(IBlockShapeMeshProvider meshProvider,
                         IBlockMeshViewFactory viewFactory)
 {
     _meshProvider = meshProvider;
     _viewFactory  = viewFactory;
 }