mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-18 16:33:24 +00:00
88830e0d00
Updates from net46->net7, dropping support for mono in favor of using the latest runtime (along with the performance/API improvements). Releases will be posted as 64bit only for now. Refactors a good amount of internal API methods to be more performant and more customizable for future updates & fixes. Adds functionality for Batch Editor commands to `>`, `<` and <=/>= TID/SID properties renamed to TID16/SID16 for clarity; other properties exposed for Gen7 / display variants. Main window has a new layout to account for DPI scaling (8 point grid) Fixed: Tatsugiri and Paldean Tauros now output Showdown form names as Showdown expects Changed: Gen9 species now interact based on the confirmed National Dex IDs (closes #3724) Fixed: Pokedex set all no longer clears species with unavailable non-base forms (closes #3720) Changed: Hyper Training suggestions now apply for level 50 in SV. (closes #3714) Fixed: B2/W2 hatched egg met locations exclusive to specific versions are now explicitly checked (closes #3691) Added: Properties for ribbon/mark count (closes #3659) Fixed: Traded SV eggs are now checked correctly (closes #3692)
54 lines
2.2 KiB
C#
54 lines
2.2 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace PKHeX.Core;
|
|
|
|
/// <summary>
|
|
/// Information for Accessing individual blocks within a <see cref="SAV6AODemo"/>.
|
|
/// </summary>
|
|
public sealed class SaveBlockAccessor6AODemo : ISaveBlockAccessor<BlockInfo6>, ISaveBlock6Core
|
|
{
|
|
public const int BlockMetadataOffset = SaveUtil.SIZE_G6ORASDEMO - 0x200;
|
|
private const int boAOdemo = BlockMetadataOffset;
|
|
|
|
private static readonly BlockInfo6[] BlocksAODemo =
|
|
{
|
|
new(boAOdemo, 00, 0x00000, 0x00B90), // MyItem
|
|
new(boAOdemo, 01, 0x00C00, 0x0002C), // ItemInfo6
|
|
new(boAOdemo, 02, 0x00E00, 0x00038), // GameTime
|
|
new(boAOdemo, 03, 0x01000, 0x00150), // Situation
|
|
new(boAOdemo, 04, 0x01200, 0x00004), // RandomGroup (rand seeds)
|
|
new(boAOdemo, 05, 0x01400, 0x00008), // PlayTime
|
|
new(boAOdemo, 06, 0x01600, 0x00024), // temp variables (u32 id + 32 u8)
|
|
new(boAOdemo, 07, 0x01800, 0x02100), // FieldMoveModelSave
|
|
new(boAOdemo, 08, 0x03A00, 0x00130), // Misc
|
|
new(boAOdemo, 09, 0x03C00, 0x00170), // MyStatus
|
|
new(boAOdemo, 10, 0x03E00, 0x0061C), // PokePartySave
|
|
new(boAOdemo, 11, 0x04600, 0x00504), // EventWork
|
|
new(boAOdemo, 12, 0x04C00, 0x00004), // Packed Menu Bits
|
|
new(boAOdemo, 13, 0x04E00, 0x00048), // Repel Info, (Swarm?) and other overworld info (roamer)
|
|
new(boAOdemo, 14, 0x05000, 0x00400), // PokeDiarySave
|
|
new(boAOdemo, 15, 0x05400, 0x0025C), // Record
|
|
};
|
|
|
|
public IReadOnlyList<BlockInfo6> BlockInfo => BlocksAODemo;
|
|
public MyItem Items { get; }
|
|
public ItemInfo6 ItemInfo { get; }
|
|
public GameTime6 GameTime { get; }
|
|
public Situation6 Situation { get; }
|
|
public PlayTime6 Played { get; }
|
|
public MyStatus6 Status { get; }
|
|
public RecordBlock6 Records { get; }
|
|
public Misc6AO Misc { get; }
|
|
|
|
public SaveBlockAccessor6AODemo(SAV6AODemo sav)
|
|
{
|
|
Items = new MyItem6AO(sav, 0x00000);
|
|
ItemInfo = new ItemInfo6(sav, 0x00C00);
|
|
GameTime = new GameTime6(sav, 0x00E00);
|
|
Situation = new Situation6(sav, 0x01000);
|
|
Played = new PlayTime6(sav, 0x01400);
|
|
Status = new MyStatus6(sav, 0x03C00);
|
|
Records = new RecordBlock6AO(sav, 0x05400);
|
|
Misc = new Misc6AO(sav, 0x03A00);
|
|
}
|
|
}
|