mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-21 07:59:22 +01:00
76 lines
No EOL
2.4 KiB
C#
76 lines
No EOL
2.4 KiB
C#
using System;
|
|
using Penumbra.Mods;
|
|
|
|
namespace Penumbra.Import;
|
|
|
|
internal static class DefaultTexToolsData
|
|
{
|
|
public const string Name = "New Mod";
|
|
public const string Author = "Unknown";
|
|
public const string Description = "Mod imported from TexTools mod pack.";
|
|
public const string DefaultOption = "Default";
|
|
}
|
|
|
|
[Serializable]
|
|
internal class SimpleMod
|
|
{
|
|
public string Name = string.Empty;
|
|
public string Category = string.Empty;
|
|
public string FullPath = string.Empty;
|
|
public string DatFile = string.Empty;
|
|
public long ModOffset = 0;
|
|
public long ModSize = 0;
|
|
public object? ModPackEntry = null;
|
|
}
|
|
|
|
[Serializable]
|
|
internal class ModPackPage
|
|
{
|
|
public int PageIndex = 0;
|
|
public ModGroup[] ModGroups = Array.Empty< ModGroup >();
|
|
}
|
|
|
|
[Serializable]
|
|
internal class ModGroup
|
|
{
|
|
public string GroupName = string.Empty;
|
|
public SelectType SelectionType = SelectType.Single;
|
|
public OptionList[] OptionList = Array.Empty< OptionList >();
|
|
}
|
|
|
|
[Serializable]
|
|
internal class OptionList
|
|
{
|
|
public string Name = string.Empty;
|
|
public string Description = string.Empty;
|
|
public string ImagePath = string.Empty;
|
|
public SimpleMod[] ModsJsons = Array.Empty< SimpleMod >();
|
|
public string GroupName = string.Empty;
|
|
public SelectType SelectionType = SelectType.Single;
|
|
public bool IsChecked = false;
|
|
}
|
|
|
|
[Serializable]
|
|
internal class ExtendedModPack
|
|
{
|
|
public string PackVersion = string.Empty;
|
|
public string Name = DefaultTexToolsData.Name;
|
|
public string Author = DefaultTexToolsData.Author;
|
|
public string Version = string.Empty;
|
|
public string Description = DefaultTexToolsData.Description;
|
|
public string Url = string.Empty;
|
|
public ModPackPage[] ModPackPages = Array.Empty< ModPackPage >();
|
|
public SimpleMod[] SimpleModsList = Array.Empty< SimpleMod >();
|
|
}
|
|
|
|
[Serializable]
|
|
internal class SimpleModPack
|
|
{
|
|
public string TtmpVersion = string.Empty;
|
|
public string Name = DefaultTexToolsData.Name;
|
|
public string Author = DefaultTexToolsData.Author;
|
|
public string Version = string.Empty;
|
|
public string Description = DefaultTexToolsData.Description;
|
|
public string Url = string.Empty;
|
|
public SimpleMod[] SimpleModsList = Array.Empty< SimpleMod >();
|
|
} |