mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-07-06 09:28:45 +00:00
Move Common functionality to Core project & rendering and Model support as well
This commit is contained in:
22
PckStudio.Core/Interfaces/IModelImportProvider.cs
Normal file
22
PckStudio.Core/Interfaces/IModelImportProvider.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using PckStudio.Core;
|
||||
|
||||
namespace PckStudio.Interfaces
|
||||
{
|
||||
public interface IModelImportProvider<T> where T : class
|
||||
{
|
||||
public string Name { get; }
|
||||
|
||||
public FileDialogFilter DialogFilter { get; }
|
||||
|
||||
public bool SupportImport { get; }
|
||||
public bool SupportExport { get; }
|
||||
|
||||
public T Import(string filename);
|
||||
public T Import(Stream stream);
|
||||
|
||||
public void Export(string filename, T model);
|
||||
public void Export(ref Stream stream, T model);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user