Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72922a5
commit f730a5f
Showing
19 changed files
with
531 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
using DeBroglie.MagicaVoxel; | ||
using DeBroglie.Topo; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Drawing; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using TiledLib; | ||
|
||
namespace DeBroglie.Console.Export | ||
{ | ||
public abstract class ExportOptions | ||
{ | ||
public abstract string TypeDescription { get; } | ||
} | ||
|
||
public class TiledExportOptions : ExportOptions | ||
{ | ||
public Map Template { get; set; } | ||
public string SrcFileName { get; set; } | ||
|
||
public override string TypeDescription => "Tiled"; | ||
} | ||
|
||
public class VoxExportOptions : ExportOptions | ||
{ | ||
public Vox Template { get; set; } | ||
|
||
public override string TypeDescription => "Vox"; | ||
} | ||
|
||
public class BitmapExportOptions : ExportOptions | ||
{ | ||
public override string TypeDescription => "Bitmap"; | ||
} | ||
|
||
public class BitmapSetExportOptions : ExportOptions | ||
{ | ||
public override string TypeDescription => "Bitmap set"; | ||
|
||
public IDictionary<Tile, Bitmap> Bitmaps { get; set; } | ||
|
||
public int TileWidth { get; set; } | ||
public int TileHeight { get; set; } | ||
} | ||
|
||
public class VoxSetExportOptions : ExportOptions | ||
{ | ||
public override string TypeDescription => "Bitmap set"; | ||
|
||
public IDictionary<Tile, Vox> SubTiles { get; set; } | ||
|
||
public int TileWidth { get; set; } | ||
public int TileHeight { get; set; } | ||
public int TileDepth { get; set; } | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using DeBroglie.Console.Export; | ||
using DeBroglie.Models; | ||
|
||
namespace DeBroglie.Console | ||
{ | ||
public interface ISampleSetSaver | ||
{ | ||
void Save(TileModel model, TilePropagator tilePropagator, string filename, DeBroglieConfig config, ExportOptions exportOptions); | ||
|
||
} | ||
} |
Oops, something went wrong.