Add file types for all file formats

This commit is contained in:
KillzXGaming 2019-05-08 16:45:27 -04:00
parent e744b3de26
commit f372373cdc
56 changed files with 126 additions and 14 deletions

View file

@ -13,6 +13,8 @@ namespace FirstPlugin
{
public class AAMP : IEditor<AampEditorBase>, IFileFormat
{
public FileType FileType { get; set; } = FileType.Parameter;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "AAMP" };
public string[] Extension { get; set; } = new string[] { "*.aamp" };

View file

@ -15,6 +15,8 @@ namespace FirstPlugin
{
public class BEA : TreeNodeFile, IFileFormat
{
public FileType FileType { get; set; } = FileType.Archive;
public bool CanAddFiles { get; set; } = false;
public bool CanRenameFiles { get; set; } = false;
public bool CanDeleteFiles { get; set; } = false;

View file

@ -14,6 +14,8 @@ namespace FirstPlugin
{
public class GFPAK : TreeNodeFile, IFileFormat
{
public FileType FileType { get; set; } = FileType.Archive;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Graphic Package" };
public string[] Extension { get; set; } = new string[] { "*.gfpak" };

View file

@ -12,6 +12,8 @@ namespace FirstPlugin
{
class NARC : TreeNodeFile, IFileFormat
{
public FileType FileType { get; set; } = FileType.Archive;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Nitro Archive (NARC)" };
public string[] Extension { get; set; } = new string[] { "*.narc" };

View file

@ -13,6 +13,8 @@ namespace FirstPlugin
{
public class SARC : TreeNodeFile, IFileFormat
{
public FileType FileType { get; set; } = FileType.Archive;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "SARC", "SARC", "SARC", "SARC", "SARC", "SARC" };
public string[] Extension { get; set; } = new string[] { "*.pack", "*.sarc", "*.bgenv", "*.sblarc", "*.sbactorpack", ".arc" };

View file

@ -12,6 +12,8 @@ namespace FirstPlugin
{
public class SDF : TreeNodeFile, IFileFormat
{
public FileType FileType { get; set; } = FileType.Archive;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Snow Engine Data Table Of Contents" };
public string[] Extension { get; set; } = new string[] { "*.sdftoc" };

View file

@ -13,6 +13,8 @@ namespace FirstPlugin
{
public class TMPK : IFileFormat, IArchiveFile
{
public FileType FileType { get; set; } = FileType.Archive;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "TMPK" };
public string[] Extension { get; set; } = new string[] { "*.pack" };

View file

@ -17,6 +17,8 @@ namespace FirstPlugin
{
public class BARS : TreeNodeFile, IFileFormat
{
public FileType FileType { get; set; } = FileType.Audio;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Sound Archive" };
public string[] Extension { get; set; } = new string[] { "*.bars" };

View file

@ -9,6 +9,8 @@ namespace FirstPlugin
{
public class BFGRP : IFileFormat
{
public FileType FileType { get; set; } = FileType.Audio;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Audio Group" };
public string[] Extension { get; set; } = new string[] { "*.bfgrp" };

View file

@ -12,6 +12,8 @@ namespace FirstPlugin
{
public class BFSAR : TreeNodeFile, IFileFormat
{
public FileType FileType { get; set; } = FileType.Audio;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Cafe Sound Archive" };
public string[] Extension { get; set; } = new string[] { "*.bfsar" };

View file

@ -12,6 +12,8 @@ namespace FirstPlugin
{
public class BARSLIST : IFileFormat
{
public FileType FileType { get; set; } = FileType.Audio;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Audio Archive List" };
public string[] Extension { get; set; } = new string[] { "*.barslist" };

View file

@ -14,6 +14,8 @@ namespace FirstPlugin
{
public class BCSTM : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
{
public FileType FileType { get; set; } = FileType.Audio;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Cafe Stream" };
public string[] Extension { get; set; } = new string[] { "*.bcstm" };

View file

@ -14,6 +14,8 @@ namespace FirstPlugin
{
public class BCWAV : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
{
public FileType FileType { get; set; } = FileType.Audio;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Ctr Wave" };
public string[] Extension { get; set; } = new string[] { "*.bcwav" };

View file

@ -14,6 +14,8 @@ namespace FirstPlugin
{
public class BFSTM : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
{
public FileType FileType { get; set; } = FileType.Audio;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Cafe Stream" };
public string[] Extension { get; set; } = new string[] { "*.bfstm" };

View file

@ -14,6 +14,8 @@ namespace FirstPlugin
{
public class BFWAV : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
{
public FileType FileType { get; set; } = FileType.Audio;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Cafe Wave" };
public string[] Extension { get; set; } = new string[] { "*.bfwav" };

View file

@ -14,6 +14,8 @@ namespace FirstPlugin
{
public class BRSTM : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
{
public FileType FileType { get; set; } = FileType.Audio;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Revolution Stream" };
public string[] Extension { get; set; } = new string[] { "*.brstm" };

View file

@ -14,6 +14,8 @@ namespace FirstPlugin
{
public class BRWAV : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
{
public FileType FileType { get; set; } = FileType.Audio;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Revolution Wave" };
public string[] Extension { get; set; } = new string[] { "*.brwav" };

View file

@ -14,6 +14,8 @@ namespace FirstPlugin
{
public class HPS : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
{
public FileType FileType { get; set; } = FileType.Audio;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "hps" };
public string[] Extension { get; set; } = new string[] { "*.HPS" };

View file

@ -14,6 +14,8 @@ namespace FirstPlugin
{
public class IDSP : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
{
public FileType FileType { get; set; } = FileType.Audio;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "IDSP" };
public string[] Extension { get; set; } = new string[] { "*.idsp" };

View file

@ -16,6 +16,8 @@ namespace FirstPlugin
{
public class MP3 : IEditor<AudioPlayer>, IFileFormat
{
public FileType FileType { get; set; } = FileType.Audio;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "MPEG-1 Audio Layer-3" };
public string[] Extension { get; set; } = new string[] { "*.mp3" };

View file

@ -16,6 +16,8 @@ namespace FirstPlugin
{
public class OGG : IEditor<AudioPlayer>, IFileFormat
{
public FileType FileType { get; set; } = FileType.Audio;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Ogg-vorbis" };
public string[] Extension { get; set; } = new string[] { "*.ogg" };

View file

@ -14,6 +14,8 @@ namespace FirstPlugin
{
public class WAV : IEditor<AudioPlayer>, IFileFormat
{
public FileType FileType { get; set; } = FileType.Audio;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Waveform Audio" };
public string[] Extension { get; set; } = new string[] { "*.wav" };

View file

@ -21,6 +21,8 @@ namespace FirstPlugin
{
public class BFRES : BFRESWrapper, IFileFormat
{
public FileType FileType { get; set; } = FileType.Resource;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "BFRES" };
public string[] Extension { get; set; } = new string[] {

View file

@ -15,6 +15,8 @@ namespace FirstPlugin.Turbo
{
public class PartsBIN : TreeNodeFile, IFileFormat
{
public FileType FileType { get; set; } = FileType.Parameter;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Mario Kart 8 Kart Parts" };
public string[] Extension { get; set; } = new string[] { "*.bin" };

View file

@ -14,6 +14,8 @@ namespace FirstPlugin
{
public class BYAML : IEditor<ByamlEditor>, IFileFormat
{
public FileType FileType { get; set; } = FileType.Parameter;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "BYAML" };
public string[] Extension { get; set; } = new string[] { "*.byaml", "*.byml", "*.bprm", "*.sbyml" };

View file

@ -19,6 +19,8 @@ namespace FirstPlugin
{
public class KCL : TreeNodeFile, IFileFormat
{
public FileType FileType { get; set; } = FileType.Collision;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "KCL" };
public string[] Extension { get; set; } = new string[] { "*.kcl" };

View file

@ -12,6 +12,8 @@ namespace FirstPlugin
{
public class CsvModel : IFileFormat
{
public FileType FileType { get; set; } = FileType.Spreadsheet;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "CSV Model" };
public string[] Extension { get; set; } = new string[] { "*.csv" };

View file

@ -13,6 +13,8 @@ namespace FirstPlugin
{
public class EFCF : IFileFormat, IEditor<EffectTableEditor>
{
public FileType FileType { get; set; } = FileType.Effect;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Effect Table" };
public string[] Extension { get; set; } = new string[] { "*.efc" };

View file

@ -10,6 +10,8 @@ namespace FirstPlugin
{
public class EFF : TreeNodeFile,IFileFormat
{
public FileType FileType { get; set; } = FileType.Effect;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Namco Effect" };
public string[] Extension { get; set; } = new string[] { "*.eff" };

View file

@ -16,6 +16,8 @@ namespace FirstPlugin
{
public class PTCL : TreeNodeFile, IFileFormat
{
public FileType FileType { get; set; } = FileType.Effect;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Cafe Particle" };
public string[] Extension { get; set; } = new string[] { "*.ptcl", "*.sesetlist" };

View file

@ -13,6 +13,8 @@ namespace FirstPlugin
{
public class BFFNT : TreeNodeFile, IFileFormat
{
public FileType FileType { get; set; } = FileType.Font;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Cafe Font" };
public string[] Extension { get; set; } = new string[] { "*.bffnt" };

View file

@ -11,6 +11,8 @@ namespace FirstPlugin
{
public class BFLAN : IFileFormat
{
public FileType FileType { get; set; } = FileType.Layout;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Cafe Layout Animation (GUI)" };
public string[] Extension { get; set; } = new string[] { "*.bflan" };

View file

@ -11,6 +11,8 @@ namespace FirstPlugin
{
public class BFLYT : IFileFormat
{
public FileType FileType { get; set; } = FileType.Layout;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Cafe Layout (GUI)" };
public string[] Extension { get; set; } = new string[] { "*.bflyt" };

View file

@ -13,6 +13,8 @@ namespace FirstPlugin
{
public class MSBT : IEditor<MSBTEditor>, IFileFormat
{
public FileType FileType { get; set; } = FileType.Message;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Message Binary Text" };
public string[] Extension { get; set; } = new string[] { "*.msbt" };

View file

@ -9,6 +9,8 @@ namespace FirstPlugin
{
public class NCA : IFileFormat
{
public FileType FileType { get; set; } = FileType.Rom;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "NCA" };
public string[] Extension { get; set; } = new string[] { "*.nca" };

View file

@ -17,6 +17,8 @@ namespace FirstPlugin
public class NSP : TreeNodeFile, IFileFormat
{
public FileType FileType { get; set; } = FileType.Rom;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "NSP" };
public string[] Extension { get; set; } = new string[] { "*.nsp" };

View file

@ -9,6 +9,8 @@ namespace FirstPlugin
{
public class XCI : IFileFormat
{
public FileType FileType { get; set; } = FileType.Rom;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "XCI" };
public string[] Extension { get; set; } = new string[] { "*.xci" };

View file

@ -13,6 +13,8 @@ namespace FirstPlugin
{
public class BFSHA : TreeNodeFile, IFileFormat
{
public FileType FileType { get; set; } = FileType.Shader;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Binary Shader Archive" };
public string[] Extension { get; set; } = new string[] { "*.bfsha" };

View file

@ -13,6 +13,8 @@ namespace FirstPlugin
{
public class BNSH : TreeNodeFile, IFileFormat
{
public FileType FileType { get; set; } = FileType.Shader;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Binary Shader" };
public string[] Extension { get; set; } = new string[] { "*.bnsh" };

View file

@ -14,6 +14,8 @@ namespace FirstPlugin
{
public class SHARC : TreeNodeFile, IFileFormat
{
public FileType FileType { get; set; } = FileType.Shader;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Shader Archive" };
public string[] Extension { get; set; } = new string[] { "*.sharc" };

View file

@ -13,6 +13,8 @@ namespace FirstPlugin
{
public class SHARCFB : TreeNodeFile, IFileFormat
{
public FileType FileType { get; set; } = FileType.Shader;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Binary Shader Archive" };
public string[] Extension { get; set; } = new string[] { "*.sharcfb" };

View file

@ -14,6 +14,8 @@ namespace FirstPlugin
{
public class BCLIM : STGenericTexture, IEditor<ImageEditorForm>, IFileFormat
{
public FileType FileType { get; set; } = FileType.Image;
public override TEX_FORMAT[] SupportedFormats
{
get

View file

@ -14,6 +14,8 @@ namespace FirstPlugin
{
public class BFLIM : STGenericTexture, IEditor<ImageEditorForm>, IFileFormat
{
public FileType FileType { get; set; } = FileType.Layout;
public override TEX_FORMAT[] SupportedFormats
{
get

View file

@ -22,6 +22,8 @@ namespace FirstPlugin
{
public class BNTX : TreeNodeFile, IFileFormat
{
public FileType FileType { get; set; } = FileType.Image;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "BNTX" };
public string[] Extension { get; set; } = new string[] { "*.bntx" };

View file

@ -35,6 +35,8 @@ namespace FirstPlugin
public class GTXFile : TreeNodeFile, IFileFormat
{
public FileType FileType { get; set; } = FileType.Image;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "GTX" };
public string[] Extension { get; set; } = new string[] { "*.gtx" };

View file

@ -15,6 +15,8 @@ namespace FirstPlugin
{
public class NUT : TreeNodeFile, IFileFormat
{
public FileType FileType { get; set; } = FileType.Image;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Namco Universal Texture Container" };
public string[] Extension { get; set; } = new string[] { "*.nut" };

View file

@ -16,6 +16,8 @@ namespace FirstPlugin
{
public class NUTEXB : STGenericTexture, IFileFormat
{
public FileType FileType { get; set; } = FileType.Image;
public override TEX_FORMAT[] SupportedFormats
{
get

View file

@ -14,6 +14,8 @@ namespace FirstPlugin
{
public class XTX : TreeNodeFile, IFileFormat
{
public FileType FileType { get; set; } = FileType.Image;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "XTX" };
public string[] Extension { get; set; } = new string[] { "*.xtx", "*.z" };

View file

@ -12,6 +12,8 @@ namespace FirstPlugin.Turbo
{
public class Course_MapCamera_bin : IEditor<MK8MapCameraEditor>, IFileFormat
{
public FileType FileType { get; set; } = FileType.Default;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Course Map Camera" };
public string[] Extension { get; set; } = new string[] { "*.bin" };

View file

@ -11,6 +11,8 @@ namespace FirstPlugin
{
public class XLINK : TreeNodeFile, IFileFormat
{
public FileType FileType { get; set; } = FileType.Effect;
public bool CanSave { get; set; }
public string[] Description { get; set; } = new string[] { "Effect Link" };
public string[] Extension { get; set; } = new string[] { "*.bslnk", "*.belnk" };

View file

@ -11,6 +11,8 @@ namespace Switch_Toolbox.Library
{
public class ASTC : STGenericTexture, IEditor<ImageEditorForm>, IFileFormat
{
public FileType FileType { get; set; } = FileType.Image;
public override TEX_FORMAT[] SupportedFormats
{
get

View file

@ -20,6 +20,8 @@ namespace Switch_Toolbox.Library
//Data from https://github.com/jam1garner/Smash-Forge/blob/master/Smash%20Forge/Filetypes/Textures/DDS.cs
public class DDS : STGenericTexture, IEditor<ImageEditorForm>, IFileFormat
{
public FileType FileType { get; set; } = FileType.Image;
public override TEX_FORMAT[] SupportedFormats
{
get

View file

@ -33,20 +33,6 @@ namespace Switch_Toolbox.Library
{
public FileType FileDataType = FileType.Default;
//Will be used for list categories
public enum FileType
{
Default,
Images,
Archives,
Graphics,
Models,
Shaders,
Collision,
Byaml,
Parameters,
}
public string GetSize()
{
return STMath.GetFileSize(FileData.Length, 4);

View file

@ -8,8 +8,30 @@ using Switch_Toolbox.Library.IO;
namespace Switch_Toolbox.Library
{
public enum FileType
{
Default,
Image,
Archive,
Layout,
Model,
Effect,
Font,
Audio,
Message,
Resource,
Shader,
Collision,
Parameter,
Graphic,
Rom,
Spreadsheet,
}
public interface IFileFormat
{
FileType FileType { get; set; }
bool CanSave { get; set; }
string[] Description { get; set; }