Fix EQDP bug.

This commit is contained in:
Ottermandias 2024-06-15 12:09:41 +02:00
parent ad0c64d4ac
commit 30b32fdcd2
3 changed files with 4 additions and 12 deletions

View file

@ -104,15 +104,11 @@ public unsafe class ExpandedEqpGmpBase : MetaBaseFile
}
}
public sealed class ExpandedEqpFile : ExpandedEqpGmpBase, IEnumerable<EqpEntry>
public sealed class ExpandedEqpFile(MetaFileManager manager) : ExpandedEqpGmpBase(manager, false), IEnumerable<EqpEntry>
{
public static readonly CharacterUtility.InternalIndex InternalIndex =
CharacterUtility.ReverseIndices[(int)MetaIndex.Eqp];
public ExpandedEqpFile(MetaFileManager manager)
: base(manager, false)
{ }
public EqpEntry this[PrimaryId idx]
{
get => (EqpEntry)GetInternal(idx);
@ -147,15 +143,11 @@ public sealed class ExpandedEqpFile : ExpandedEqpGmpBase, IEnumerable<EqpEntry>
=> GetEnumerator();
}
public sealed class ExpandedGmpFile : ExpandedEqpGmpBase, IEnumerable<GmpEntry>
public sealed class ExpandedGmpFile(MetaFileManager manager) : ExpandedEqpGmpBase(manager, true), IEnumerable<GmpEntry>
{
public static readonly CharacterUtility.InternalIndex InternalIndex =
CharacterUtility.ReverseIndices[(int)MetaIndex.Gmp];
public ExpandedGmpFile(MetaFileManager manager)
: base(manager, true)
{ }
public GmpEntry this[PrimaryId idx]
{
get => new() { Value = GetInternal(idx) };