public LevelGridMeshController(IBlockMeshViewFactory blockMeshViewFactory,
                                ILevelGridMeshBuilder gridMeshBuilder,
                                Material gridMaterial,
                                ILevelModel levelModel)
 {
     _blockMeshViewFactory = blockMeshViewFactory;
     _gridMeshBuilder      = gridMeshBuilder;
     _gridMaterial         = gridMaterial;
     _levelModel           = levelModel;
 }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
 public BlockViewBuilder(IBlockShapeMeshProvider meshProvider,
                         IBlockMeshViewFactory viewFactory)
 {
     _meshProvider = meshProvider;
     _viewFactory  = viewFactory;
 }