Example #1
0
        public TileSetModel([NotNull]TileSet tileSet, string fileName, BitmapSource image, BitmapSource extraImage)
        {
            _tileSet = tileSet;
            FileName = fileName;
            ExtraImage = extraImage;

            Name = tileSet.Name;
            ExtraImagesEditor = new ExtraImagesEditorModel(this, extraImage);
            TilesEditor = new TilesEditorModel(this, image);
            PickAnyTileUnitsEditor = new PickAnyTileUnitsEditorModel(this);
            TileUnitsEditor = new TileUnitsEditorModel(this);
        }
Example #2
0
        public TileSetModel([NotNull] TileSet tileSet, string fileName, BitmapSource image, BitmapSource extraImage)
        {
            _tileSet   = tileSet;
            FileName   = fileName;
            ExtraImage = extraImage;

            Name = tileSet.Name;
            ExtraImagesEditor      = new ExtraImagesEditorModel(this, extraImage);
            TilesEditor            = new TilesEditorModel(this, image);
            PickAnyTileUnitsEditor = new PickAnyTileUnitsEditorModel(this);
            TileUnitsEditor        = new TileUnitsEditorModel(this);
        }