diff --git a/OniExtract/ExportTag.cs b/OniExtract/ExportTag.cs new file mode 100644 index 0000000..e25475b --- /dev/null +++ b/OniExtract/ExportTag.cs @@ -0,0 +1,17 @@ +using OniExtract2; +using System; +using System.Collections.Generic; + +public class ExportTag : BaseExport +{ + public override string ExportFileName { get; set; } = "tags"; + public Dictionary SimHashes = new Dictionary(); + + public ExportTag() + { + foreach (var name in Enum.GetNames(typeof(SimHashes))) + { + this.SimHashes[name] = (int)Enum.Parse(typeof(SimHashes), name); + } + } +} diff --git a/OniExtract/OniExtract.csproj b/OniExtract/OniExtract.csproj index dfdfc4f..a52a35b 100644 --- a/OniExtract/OniExtract.csproj +++ b/OniExtract/OniExtract.csproj @@ -64,6 +64,7 @@ + diff --git a/OniExtract/Patches.cs b/OniExtract/Patches.cs index ddfbeb7..61debff 100644 --- a/OniExtract/Patches.cs +++ b/OniExtract/Patches.cs @@ -435,7 +435,9 @@ internal class OniExtract_Game_Entities { private static void Postfix() { - Debug.Log("OniExtract: " + "Export Entities"); + Debug.Log("OniExtract: " + "Export Tags"); + ExportTag exportTag = new ExportTag(); + exportTag.ExportJsonFile(); } } }