PKHeX/PKHeX.Core/Saves/Access/ISaveBlock9Main.cs
Jonathan Herbert 92c964d6fa
Refactor And Deduplicate Some Switch Games Common Logic (#4187)
- Improve Epoch 1900 classes using similar logic from PlayTime7b.
- Move Time Classes into non Gen specific folder since it appears the logic is shared across a few of them.
- Use Epoch1900DateTimeValue for LastSaved in PlayTime7b since the logic is the same.
- Remove TeamIndexes9 since it is a duplicate of TeamIndexes9. Use the similar pattern like Box8 where it is reused in multiple locations.
- Add BlueberryClubRoom9 to ISaveBlock9Main since it wasn't added when the class was introduced.
- Simplify RaidSevenStar9 creation since GetBlockSafe does basically what the if-else block does.
- Change SAV8SWSH Base Raid to RaidGalar to match the same way the SAV9SV does for its Base Raid.
2024-02-23 13:19:17 -06:00

26 lines
844 B
C#

namespace PKHeX.Core;
/// <summary>
/// Interface for Accessing named blocks within a Generation 9 save file.
/// </summary>
public interface ISaveBlock9Main
{
Box8 BoxInfo { get; }
Party9 PartyInfo { get; }
MyItem9 Items { get; }
MyStatus9 MyStatus { get; }
BoxLayout9 BoxLayout { get; }
PlayTime9 Played { get; }
Zukan9 Zukan { get; }
ConfigSave9 Config { get; }
TeamIndexes8 TeamIndexes { get; }
Epoch1900DateTimeValue LastSaved { get; }
Epoch1970Value LastDateCycle { get; }
PlayerFashion9 PlayerFashion { get; }
PlayerAppearance9 PlayerAppearance { get; }
RaidSpawnList9 RaidPaldea { get; }
RaidSpawnList9 RaidKitakami { get; }
RaidSpawnList9 RaidBlueberry { get; }
BlueberryQuestRecord9 BlueberryQuestRecord { get; }
BlueberryClubRoom9 BlueberryClubRoom { get; }
}