Actually let's just use info from Penumbra.GameData
This commit is contained in:
@@ -11,7 +11,7 @@ namespace CustomizePlus.GameData.ReverseSearchDictionaries;
|
|||||||
|
|
||||||
/// <summary> A dictionary that matches names to battle npc ids. </summary>
|
/// <summary> A dictionary that matches names to battle npc ids. </summary>
|
||||||
public sealed class ReverseSearchDictBNpc(IDalamudPluginInterface pluginInterface, Logger log, IDataManager gameData)
|
public sealed class ReverseSearchDictBNpc(IDalamudPluginInterface pluginInterface, Logger log, IDataManager gameData)
|
||||||
: ReverseNameDictionary(pluginInterface, log, gameData, "ReverseSearchBNpcs", Versions.DictBNpc, () => CreateBNpcData(gameData))
|
: ReverseNameDictionary(pluginInterface, log, gameData, "ReverseSearchBNpcs", Penumbra.GameData.DataContainers.Version.DictBNpc, () => CreateBNpcData(gameData))
|
||||||
{
|
{
|
||||||
/// <summary> Create the data. </summary>
|
/// <summary> Create the data. </summary>
|
||||||
private static IReadOnlyDictionary<string, uint> CreateBNpcData(IDataManager gameData)
|
private static IReadOnlyDictionary<string, uint> CreateBNpcData(IDataManager gameData)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ namespace CustomizePlus.GameData.ReverseSearchDictionaries;
|
|||||||
|
|
||||||
/// <summary> A dictionary that matches companion names to their ids. </summary>
|
/// <summary> A dictionary that matches companion names to their ids. </summary>
|
||||||
public sealed class ReverseSearchDictCompanion(IDalamudPluginInterface pluginInterface, Logger log, IDataManager gameData)
|
public sealed class ReverseSearchDictCompanion(IDalamudPluginInterface pluginInterface, Logger log, IDataManager gameData)
|
||||||
: ReverseNameDictionary(pluginInterface, log, gameData, "ReverseSearchCompanions", Versions.DictCompanion, () => CreateCompanionData(gameData))
|
: ReverseNameDictionary(pluginInterface, log, gameData, "ReverseSearchCompanions", Penumbra.GameData.DataContainers.Version.DictCompanion, () => CreateCompanionData(gameData))
|
||||||
{
|
{
|
||||||
/// <summary> Create the data. </summary>
|
/// <summary> Create the data. </summary>
|
||||||
private static IReadOnlyDictionary<string, uint> CreateCompanionData(IDataManager gameData)
|
private static IReadOnlyDictionary<string, uint> CreateCompanionData(IDataManager gameData)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ namespace CustomizePlus.GameData.ReverseSearchDictionaries;
|
|||||||
|
|
||||||
/// <summary> A dictionary that matches names to event npc ids. </summary>
|
/// <summary> A dictionary that matches names to event npc ids. </summary>
|
||||||
public sealed class ReverseSearchDictENpc(IDalamudPluginInterface pluginInterface, Logger log, IDataManager gameData)
|
public sealed class ReverseSearchDictENpc(IDalamudPluginInterface pluginInterface, Logger log, IDataManager gameData)
|
||||||
: ReverseNameDictionary(pluginInterface, log, gameData, "ReverseSearchENpcs", Versions.DictENpc, () => CreateENpcData(gameData))
|
: ReverseNameDictionary(pluginInterface, log, gameData, "ReverseSearchENpcs", Penumbra.GameData.DataContainers.Version.DictENpc, () => CreateENpcData(gameData))
|
||||||
{
|
{
|
||||||
/// <summary> Create the data. </summary>
|
/// <summary> Create the data. </summary>
|
||||||
private static IReadOnlyDictionary<string, uint> CreateENpcData(IDataManager gameData)
|
private static IReadOnlyDictionary<string, uint> CreateENpcData(IDataManager gameData)
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ namespace CustomizePlus.GameData.ReverseSearchDictionaries;
|
|||||||
|
|
||||||
/// <summary> A dictionary that matches names to mount ids. </summary>
|
/// <summary> A dictionary that matches names to mount ids. </summary>
|
||||||
public sealed class ReverseSearchDictMount(IDalamudPluginInterface pluginInterface, Logger log, IDataManager gameData)
|
public sealed class ReverseSearchDictMount(IDalamudPluginInterface pluginInterface, Logger log, IDataManager gameData)
|
||||||
: ReverseNameDictionary(pluginInterface, log, gameData, "ReverseSearchMounts", Versions.DictMount, () => CreateMountData(gameData))
|
: ReverseNameDictionary(pluginInterface, log, gameData, "ReverseSearchMounts", Penumbra.GameData.DataContainers.Version.DictMount, () => CreateMountData(gameData))
|
||||||
{
|
{
|
||||||
/// <summary> Create the data. </summary>
|
/// <summary> Create the data. </summary>
|
||||||
private static IReadOnlyDictionary<string, uint> CreateMountData(IDataManager gameData)
|
private static IReadOnlyDictionary<string, uint> CreateMountData(IDataManager gameData)
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace CustomizePlus.GameData.ReverseSearchDictionaries;
|
|
||||||
|
|
||||||
public static class Versions
|
|
||||||
{
|
|
||||||
public const int GlobalOffset = 0;
|
|
||||||
public const int UsesExtractTextOffset = 0;
|
|
||||||
public const int UsesTitleCaseOffset = 0 + UsesExtractTextOffset;
|
|
||||||
|
|
||||||
public const int DictCompanionOffset = 9;
|
|
||||||
public const int DictCompanion = UsesTitleCaseOffset + DictCompanionOffset;
|
|
||||||
|
|
||||||
public const int DictBNpcOffset = 9;
|
|
||||||
public const int DictBNpc = UsesTitleCaseOffset + DictBNpcOffset;
|
|
||||||
|
|
||||||
public const int DictMountOffset = 9;
|
|
||||||
public const int DictMount = UsesTitleCaseOffset + DictMountOffset;
|
|
||||||
|
|
||||||
public const int DictENpcOffset = 9;
|
|
||||||
public const int DictENpc = UsesTitleCaseOffset + DictENpcOffset;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user