mirror of
https://github.com/kwsch/pkNX.git
synced 2026-09-09 19:15:26 -05:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user