mirror of
https://github.com/kwsch/pkNX.git
synced 2026-09-11 03:55:22 -05:00
Rename to PersonalTableLAfb (#245)
This makes it easier to see the difference
This commit is contained in:
@@ -15,12 +15,12 @@ public sealed class PersonalTable8LA : IPersonalTable, IPersonalTable<PersonalIn
|
||||
public int MaxSpeciesID => MaxSpecies;
|
||||
|
||||
private readonly IFileContainer File;
|
||||
public PersonalTableLA Root { get; private set; }
|
||||
public PersonalTableLAfb Root { get; private set; }
|
||||
|
||||
public PersonalTable8LA(IFileContainer file)
|
||||
{
|
||||
File = file;
|
||||
Root = FlatBufferConverter.DeserializeFrom<PersonalTableLA>(file[0]);
|
||||
Root = FlatBufferConverter.DeserializeFrom<PersonalTableLAfb>(file[0]);
|
||||
|
||||
var baseForms = new PersonalInfo8LA[MaxSpecies + 1];
|
||||
var formTable = new List<PersonalInfo8LA>();
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace pkNX.Structures.FlatBuffers;
|
||||
/// <see cref="PersonalInfo"/> class with values from the <see cref="GameVersion.PLA"/> games.
|
||||
/// </summary>
|
||||
[FlatBufferTable, TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
public class PersonalTableLA : IFlatBufferArchive<PersonalInfoLAfb>
|
||||
public class PersonalTableLAfb : IFlatBufferArchive<PersonalInfoLAfb>
|
||||
{
|
||||
[FlatBufferItem(0)] public PersonalInfoLAfb[] Table { get; set; } = Array.Empty<PersonalInfoLAfb>();
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ public void DumpPersonal()
|
||||
File.WriteAllBytes(path, test);*/
|
||||
|
||||
var csv = GetPath("personal.csv");
|
||||
File.WriteAllText(csv, FlatDumper.GetTable<PersonalTableLA, PersonalInfoLAfb>(data));
|
||||
File.WriteAllText(csv, FlatDumper.GetTable<PersonalTableLAfb, PersonalInfoLAfb>(data));
|
||||
}
|
||||
|
||||
public void DumpPokeInfo()
|
||||
|
||||
@@ -311,7 +311,7 @@ public int GetRandomForm(int spec)
|
||||
public void EditPersonal_Raw()
|
||||
{
|
||||
var names = ROM.GetStrings(TextName.SpeciesNames);
|
||||
PopFlat<PersonalTableLA, PersonalInfoLAfb>(GameFile.PersonalStats, "Personal Info Editor (Raw)", z => $"{names[z.Species]}{(z.Form == 0 ? "" : $"-{z.Form}")}");
|
||||
PopFlat<PersonalTableLAfb, PersonalInfoLAfb>(GameFile.PersonalStats, "Personal Info Editor (Raw)", z => $"{names[z.Species]}{(z.Form == 0 ? "" : $"-{z.Form}")}");
|
||||
}
|
||||
|
||||
public void EditLearnset_Raw()
|
||||
|
||||
Reference in New Issue
Block a user