Flatsharp codegen (#326)

* Manually translated/attributed fbs files.

* Include fields in obj-as-table dump

* Emit fields for json too. FlatSharp generates structs with fields rather than properties at fixed offsets (maybe I'm missing a setting)

* Update .editorconfig to ignore generated code files (unsure if this actually works).
This commit is contained in:
Kurt
2023-04-06 18:00:19 -07:00
committed by GitHub
parent 823a204bfa
commit 8e83b63d95
955 changed files with 17362 additions and 19328 deletions

View File

@@ -2,8 +2,8 @@
using System.Linq;
using System.Windows.Forms;
using pkNX.Structures;
using pkNX.Structures.FlatBuffers;
using PKHeX.Drawing.PokeSprite;
using pkNX.Structures.FlatBuffers.Arceus;
namespace pkNX.WinForms;
@@ -19,7 +19,7 @@ public partial class EvolutionRow8a : UserControl
private static readonly string[] Stats = Enumerable.Range(0, 255 + 1).Select(z => z.ToString()).ToArray();
private static readonly string[] None = { "" };
private EvolutionEntry8a? current;
private EvolutionEntry? current;
private EvolutionTypeArgumentType oldMethod;
public EvolutionRow8a()
@@ -56,7 +56,7 @@ public EvolutionRow8a()
private void ChangeSpecies(int spec, int form) => PB_Preview.Image = SpriteUtil.GetSprite((ushort)spec, (byte)form, 0, 0, 0, false, PKHeX.Core.Shiny.Never);
public void LoadEvolution(EvolutionEntry8a s)
public void LoadEvolution(EvolutionEntry s)
{
var evo = current = s;
CB_Species.SelectedIndex = evo.Species;