mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-03-21 17:48:28 -05:00
sealed
sealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealed
This commit is contained in:
parent
e104436924
commit
8d8adde2b1
|
|
@ -9,7 +9,7 @@ namespace PKHeX.Core
|
|||
/// <summary>
|
||||
/// Carries out a batch edit and contains information summarizing the results.
|
||||
/// </summary>
|
||||
public class BatchEditor
|
||||
public sealed class BatchEditor
|
||||
{
|
||||
private int Modified { get; set; }
|
||||
private int Iterated { get; set; }
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ namespace PKHeX.Core
|
|||
/// <see cref="Exclude"/>
|
||||
/// <see cref="Require"/>
|
||||
/// <see cref="Apply"/>
|
||||
public class StringInstruction
|
||||
public sealed class StringInstruction
|
||||
{
|
||||
public string PropertyName { get; private set; }
|
||||
public string PropertyValue { get; private set; }
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ namespace PKHeX.Core
|
|||
/// <summary>
|
||||
/// Processes input of strings into a list of valid Filters and Instructions.
|
||||
/// </summary>
|
||||
public class StringInstructionSet
|
||||
public sealed class StringInstructionSet
|
||||
{
|
||||
public IList<StringInstruction> Filters { get; private set; }
|
||||
public IList<StringInstruction> Instructions { get; private set; }
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace PKHeX.Core
|
|||
/// <summary>
|
||||
/// Legal Move information for a single <see cref="PKM"/>, for indicating if a move is legal or not.
|
||||
/// </summary>
|
||||
public class LegalMoveSource
|
||||
public sealed class LegalMoveSource
|
||||
{
|
||||
public readonly IList<bool> IsMoveBoxOrdered = new bool[4];
|
||||
public IReadOnlyList<ComboItem> DataSource => (ComboItem[])MoveDataAllowed.Clone();
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace PKHeX.Core
|
|||
/// <summary>
|
||||
/// Bindable summary object that can fetch strings that summarize a <see cref="PKM"/>.
|
||||
/// </summary>
|
||||
public class PKMSummary
|
||||
public class PKMSummary // do NOT seal, allow inheritance
|
||||
{
|
||||
private static readonly IReadOnlyList<string> GenderSymbols = GameInfo.GenderSymbolASCII;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace PKHeX.Core
|
|||
/// <summary>
|
||||
/// Event Flag that toggles certain features / entities on and off.
|
||||
/// </summary>
|
||||
public class EventFlag : EventVar
|
||||
public sealed class EventFlag : EventVar
|
||||
{
|
||||
public bool Flag;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ namespace PKHeX.Core
|
|||
/// <summary>
|
||||
/// Event variable used to determine game events.
|
||||
/// </summary>
|
||||
public class EventVar
|
||||
public abstract class EventVar
|
||||
{
|
||||
/// <summary>
|
||||
/// Name of event variable
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace PKHeX.Core
|
|||
/// Event number storage for more complex logic events.
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
public class EventWork<T> : EventVar
|
||||
public sealed class EventWork<T> : EventVar
|
||||
{
|
||||
public T Value;
|
||||
public readonly IList<EventWorkVal> Options = new List<EventWorkVal> { new EventWorkVal() };
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
/// <summary>
|
||||
/// Represents a known value for a <see cref="EventWork{T}"/> of type <see cref="int"/>.
|
||||
/// </summary>
|
||||
public class EventWorkVal
|
||||
public sealed class EventWorkVal
|
||||
{
|
||||
public readonly bool Custom;
|
||||
public readonly string Text;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace PKHeX.Core
|
|||
/// Editor object that unpacks <see cref="EventWork{T}"/> into flags & work groups, and handles value get/set operations.
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
public class SplitEventEditor<T>
|
||||
public sealed class SplitEventEditor<T>
|
||||
{
|
||||
public readonly IList<EventVarGroup> Work;
|
||||
public readonly IList<EventVarGroup> Flag;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
/// Environment for editing a <see cref="SaveFile"/>
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
public class SaveDataEditor<T>
|
||||
public sealed class SaveDataEditor<T>
|
||||
{
|
||||
public readonly SaveFile SAV;
|
||||
public readonly SlotEditor<T> Slots;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace PKHeX.Core
|
|||
/// <summary>
|
||||
/// Represents a Box Editor that loads the contents for easy manipulation.
|
||||
/// </summary>
|
||||
public class BoxEdit
|
||||
public sealed class BoxEdit
|
||||
{
|
||||
private readonly SaveFile SAV;
|
||||
private readonly PKM[] CurrentContents;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace PKHeX.Core
|
|||
/// <summary>
|
||||
/// Tracks <see cref="PKM"/> slot changes and provides the ability to revert a change.
|
||||
/// </summary>
|
||||
public class SlotChangelog
|
||||
public sealed class SlotChangelog
|
||||
{
|
||||
private readonly SaveFile SAV;
|
||||
private readonly Stack<SlotReversion> UndoStack = new Stack<SlotReversion>();
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ namespace PKHeX.Core
|
|||
/// Tuple containing data for a <see cref="Slot"/> and the originating <see cref="View"/>
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
public class SlotViewInfo<T>
|
||||
public sealed class SlotViewInfo<T>
|
||||
{
|
||||
public ISlotInfo Slot;
|
||||
public ISlotViewer<T> View;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace PKHeX.Core
|
|||
/// <summary>
|
||||
/// Logic for exporting and importing <see cref="PKM"/> data in Pokémon Showdown's text format.
|
||||
/// </summary>
|
||||
public class ShowdownSet
|
||||
public sealed class ShowdownSet
|
||||
{
|
||||
private static readonly string[] genders = {"M", "F", ""};
|
||||
private static readonly string[] genderForms = {"", "F", ""};
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace PKHeX.Core
|
|||
/// <summary>
|
||||
/// <see cref="SaveFile"/> sensitive provider for <see cref="ComboItem"/> data sources.
|
||||
/// </summary>
|
||||
public class FilteredGameDataSource
|
||||
public sealed class FilteredGameDataSource
|
||||
{
|
||||
public FilteredGameDataSource(SaveFile sav, GameDataSource source, bool HaX = false)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace PKHeX.Core
|
|||
/// <summary>
|
||||
/// Bundles raw string inputs into lists that can be used in data binding.
|
||||
/// </summary>
|
||||
public class GameDataSource
|
||||
public sealed class GameDataSource
|
||||
{
|
||||
public static readonly IReadOnlyList<ComboItem> Regions = Util.GetCSVUnsortedCBList("regions3ds");
|
||||
public static readonly IReadOnlyList<ComboItem> LanguageList = Util.GetCSVUnsortedCBList("languages");
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace PKHeX.Core
|
|||
/// <summary>
|
||||
/// Repository of localized game strings for a given <see cref="LanguageID"/>.
|
||||
/// </summary>
|
||||
public class GameStrings : IBasicStrings
|
||||
public sealed class GameStrings : IBasicStrings
|
||||
{
|
||||
// PKM Info
|
||||
public readonly string[] specieslist, movelist, itemlist, abilitylist, types, natures, forms,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class MemoryStrings
|
||||
public sealed class MemoryStrings
|
||||
{
|
||||
private readonly GameStrings s;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class BulkAnalysis
|
||||
public sealed class BulkAnalysis
|
||||
{
|
||||
public readonly IReadOnlyList<PKM> AllData;
|
||||
public readonly IReadOnlyList<LegalityAnalysis> AllAnalysis;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
/// <summary>
|
||||
/// Object that can be fed to a <see cref="IEncounterable"/> converter to ensure that the resulting <see cref="PKM"/> meets rough specifications.
|
||||
/// </summary>
|
||||
public class EncounterCriteria
|
||||
public sealed class EncounterCriteria
|
||||
{
|
||||
public static readonly EncounterCriteria Unrestricted = new EncounterCriteria();
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace PKHeX.Core
|
|||
/// Iterates a generic collection with the ability to peek into the collection to see if the next element exists.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">Generic Collection Element Type</typeparam>
|
||||
public class PeekEnumerator<T> : IEnumerator<T>
|
||||
public sealed class PeekEnumerator<T> : IEnumerator<T>
|
||||
{
|
||||
private readonly IEnumerator<T> Enumerator;
|
||||
private T peek;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace PKHeX.Core
|
|||
/// <summary>
|
||||
/// Object which stores information useful for analyzing a moveset relative to the encounter data.
|
||||
/// </summary>
|
||||
public class ValidEncounterMoves
|
||||
public sealed class ValidEncounterMoves
|
||||
{
|
||||
public List<int>[] LevelUpMoves { get; } = Empty;
|
||||
public List<int>[] TMHMMoves { get; } = Empty;
|
||||
|
|
@ -30,7 +30,7 @@ public ValidEncounterMoves(List<int>[] levelup)
|
|||
}
|
||||
}
|
||||
|
||||
public class LevelUpRestriction
|
||||
public sealed class LevelUpRestriction
|
||||
{
|
||||
public readonly IReadOnlyList<EvoCriteria>[] EvolutionChains;
|
||||
public readonly int MinimumLevelGen1;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace PKHeX.Core
|
|||
/// <summary>
|
||||
/// LevelUp Lookup object
|
||||
/// </summary>
|
||||
public class LearnLookup
|
||||
public sealed class LearnLookup
|
||||
{
|
||||
private readonly GameVersion Version;
|
||||
private readonly PersonalTable Table;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
namespace PKHeX.Core
|
||||
{
|
||||
public class Frame
|
||||
public sealed class Frame
|
||||
{
|
||||
/// <summary>
|
||||
/// Ending seed value for the frame (prior to nature call).
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace PKHeX.Core
|
|||
/// <summary>
|
||||
/// Frame List used to cache <see cref="RNG"/> results.
|
||||
/// </summary>
|
||||
public class FrameCache
|
||||
public sealed class FrameCache
|
||||
{
|
||||
private const int DefaultSize = 32;
|
||||
private readonly List<uint> Seeds = new List<uint>(DefaultSize);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
namespace PKHeX.Core
|
||||
{
|
||||
public class FrameGenerator
|
||||
public sealed class FrameGenerator
|
||||
{
|
||||
public uint Nature;
|
||||
public readonly bool Gendered;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
namespace PKHeX.Core
|
||||
{
|
||||
public class TeamLock
|
||||
public sealed class TeamLock
|
||||
{
|
||||
public int Species;
|
||||
public string Comment;
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ public class PIDIV
|
|||
public PIDType Type;
|
||||
}
|
||||
|
||||
public class PIDIVTSV : PIDIV
|
||||
public sealed class PIDIVTSV : PIDIV
|
||||
{
|
||||
public int TSV1 { get; internal set; } = -1;
|
||||
public int TSV2 { get; internal set; } = -1;
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public enum MoveSource
|
|||
/// <summary>
|
||||
/// Move specific <see cref="CheckResult"/> to contain in which Generation it was learned & source.
|
||||
/// </summary>
|
||||
public class CheckMoveResult : CheckResult
|
||||
public sealed class CheckMoveResult : CheckResult
|
||||
{
|
||||
public readonly MoveSource Source;
|
||||
public readonly int Generation;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
namespace PKHeX.Core
|
||||
{
|
||||
public class SimpleTrainerInfo : ITrainerInfo
|
||||
public sealed class SimpleTrainerInfo : ITrainerInfo
|
||||
{
|
||||
public string OT { get; set; } = "PKHeX";
|
||||
public int TID { get; set; } = 12345;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ namespace PKHeX.Core
|
|||
/// This Template object is very similar to the <see cref="PCD"/> structure in that it stores more data than just the gift.
|
||||
/// This template object is only present in Generation 6 save files.
|
||||
/// </remarks>
|
||||
public class PL6
|
||||
public sealed class PL6
|
||||
{
|
||||
public const int Size = 0xA47;
|
||||
public const string Filter = "Pokémon Link Data|*.pl6|All Files (*.*)|*.*";
|
||||
|
|
@ -131,7 +131,7 @@ public int[] Quantities
|
|||
/// This Template object is very similar to the <see cref="WC6"/> structure and similar objects, in that the structure offsets are ordered the same.
|
||||
/// This template object is only present in Generation 6 save files.
|
||||
/// </remarks>
|
||||
public class PL6_PKM : IRibbonSetEvent3, IRibbonSetEvent4
|
||||
public sealed class PL6_PKM : IRibbonSetEvent3, IRibbonSetEvent4
|
||||
{
|
||||
internal const int Size = 0xA0;
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ namespace PKHeX.Core
|
|||
/// This is fabricated data built to emulate the future generation Mystery Gift objects.
|
||||
/// Data here is not stored in any save file and cannot be naturally exported.
|
||||
/// </remarks>
|
||||
public class WC3 : MysteryGift, IRibbonSetEvent3, IVersion
|
||||
public sealed class WC3 : MysteryGift, IRibbonSetEvent3, IVersion
|
||||
{
|
||||
/// <summary>
|
||||
/// Matched <see cref="PIDIV"/> Type
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ namespace PKHeX.Core
|
|||
/// A full <see cref="WB7"/> is not stored in the <see cref="SAV7b"/> structure, as it is immediately converted to <see cref="PKM"/> upon receiving from server.
|
||||
/// The save file just stores a summary of the received data for the user to look back at.
|
||||
/// </remarks>
|
||||
public class WR7 : MysteryGift
|
||||
public sealed class WR7 : MysteryGift
|
||||
{
|
||||
public const int Size = 0x140;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace PKHeX.Core.Searching
|
|||
/// <summary>
|
||||
/// <see cref="PKM"/> search settings & searcher
|
||||
/// </summary>
|
||||
public class SearchSettings
|
||||
public sealed class SearchSettings
|
||||
{
|
||||
public int Format { private get; set; }
|
||||
public int Generation { private get; set; }
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class QRPK7
|
||||
public sealed class QRPK7
|
||||
{
|
||||
private readonly byte[] Data;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
/// <summary>
|
||||
/// <see cref="PersonalInfo"/> class with values from the Black 2 & White 2 games.
|
||||
/// </summary>
|
||||
public class PersonalInfoB2W2 : PersonalInfoBW
|
||||
public sealed class PersonalInfoB2W2 : PersonalInfoBW
|
||||
{
|
||||
public new const int SIZE = 0x4C;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,9 +3,8 @@
|
|||
/// <summary>
|
||||
/// <see cref="PersonalInfo"/> class with values from Generation 1 games.
|
||||
/// </summary>
|
||||
public class PersonalInfoG1 : PersonalInfo
|
||||
public sealed class PersonalInfoG1 : PersonalInfo
|
||||
{
|
||||
protected PersonalInfoG1() { }
|
||||
public const int SIZE = 0x1C;
|
||||
|
||||
public PersonalInfoG1(byte[] data)
|
||||
|
|
|
|||
|
|
@ -3,9 +3,8 @@
|
|||
/// <summary>
|
||||
/// <see cref="PersonalInfo"/> class with values from Generation 2 games.
|
||||
/// </summary>
|
||||
public class PersonalInfoG2 : PersonalInfo
|
||||
public sealed class PersonalInfoG2 : PersonalInfo
|
||||
{
|
||||
protected PersonalInfoG2() { }
|
||||
public const int SIZE = 0x20;
|
||||
|
||||
public PersonalInfoG2(byte[] data)
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace PKHeX.Core
|
|||
/// <summary>
|
||||
/// <see cref="PersonalInfo"/> class with values from Generation 4 games.
|
||||
/// </summary>
|
||||
public class PersonalInfoG4 : PersonalInfoG3
|
||||
public sealed class PersonalInfoG4 : PersonalInfoG3
|
||||
{
|
||||
public new const int SIZE = 0x2C;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
/// <summary>
|
||||
/// <see cref="PersonalInfo"/> class with values from the OR & AS games.
|
||||
/// </summary>
|
||||
public class PersonalInfoORAS : PersonalInfoXY
|
||||
public sealed class PersonalInfoORAS : PersonalInfoXY
|
||||
{
|
||||
public new const int SIZE = 0x50;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace PKHeX.Core
|
|||
/// <summary>
|
||||
/// <see cref="PersonalInfo"/> class with values from the <see cref="GameVersion.SWSH"/> games.
|
||||
/// </summary>
|
||||
public class PersonalInfoSWSH : PersonalInfoSM
|
||||
public sealed class PersonalInfoSWSH : PersonalInfoSM
|
||||
{
|
||||
public new const int SIZE = PersonalInfoSM.SIZE;
|
||||
|
||||
|
|
|
|||
|
|
@ -898,7 +898,7 @@ private void LoadEReaderBerryData()
|
|||
#endregion
|
||||
|
||||
// RTC
|
||||
public class RTC3
|
||||
public sealed class RTC3
|
||||
{
|
||||
public readonly byte[] Data;
|
||||
private const int Size = 8;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
namespace PKHeX.Core
|
||||
{
|
||||
public class SAV5B2W2 : SAV5
|
||||
public sealed class SAV5B2W2 : SAV5
|
||||
{
|
||||
public SAV5B2W2() : base(SaveUtil.SIZE_G5RAW) => Initialize();
|
||||
public SAV5B2W2(byte[] data) : base(data) => Initialize();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
namespace PKHeX.Core
|
||||
{
|
||||
public class SAV5BW : SAV5
|
||||
public sealed class SAV5BW : SAV5
|
||||
{
|
||||
public SAV5BW() : base(SaveUtil.SIZE_G5RAW) => Initialize();
|
||||
public SAV5BW(byte[] data) : base(data) => Initialize();
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class SAV7SM : SAV7
|
||||
public sealed class SAV7SM : SAV7
|
||||
{
|
||||
public SAV7SM(byte[] data) : base(data, BlocksSM, boSM) => Initialize();
|
||||
public SAV7SM() : base(SaveUtil.SIZE_G7SM, BlocksSM, boSM) => Initialize();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
namespace PKHeX.Core
|
||||
{
|
||||
public class SAV7USUM : SAV7
|
||||
public sealed class SAV7USUM : SAV7
|
||||
{
|
||||
public SAV7USUM(byte[] data) : base(data, BlocksUSUM, boUU)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
/// <summary>
|
||||
/// Generation 8 <see cref="SaveFile"/> object for <see cref="GameVersion.SWSH"/> games.
|
||||
/// </summary>
|
||||
public class SAV8SWSH : SAV8
|
||||
public sealed class SAV8SWSH : SAV8
|
||||
{
|
||||
public SAV8SWSH(byte[] data) : base(data, BlocksSWSH, boSWSH) => Initialize();
|
||||
public SAV8SWSH() : base(SaveUtil.SIZE_G8SWSH, BlocksSWSH, boSWSH) => Initialize();
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class BV6 : BattleVideo
|
||||
public sealed class BV6 : BattleVideo
|
||||
{
|
||||
internal const int SIZE = 0x2E60;
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class BV7 : BattleVideo
|
||||
public sealed class BV7 : BattleVideo
|
||||
{
|
||||
internal const int SIZE = 0x2BC0;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class G1OverworldSpawner
|
||||
public sealed class G1OverworldSpawner
|
||||
{
|
||||
private readonly SAV1 SAV;
|
||||
private readonly bool[] EventFlags;
|
||||
|
|
@ -73,7 +73,7 @@ public G1OverworldSpawner(SAV1 sav)
|
|||
private FlagPair FlagSquirtle { get; }
|
||||
private FlagPair FlagCharmander { get; }
|
||||
|
||||
public class FlagPair
|
||||
public sealed class FlagPair
|
||||
{
|
||||
public string Name { get; internal set; }
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class HallFame3Entry
|
||||
public sealed class HallFame3Entry
|
||||
{
|
||||
private readonly byte[] Parent;
|
||||
private readonly bool Japanese;
|
||||
|
|
@ -64,7 +64,7 @@ public static void SetEntries(SAV3 sav, HallFame3Entry[] entries)
|
|||
}
|
||||
}
|
||||
|
||||
public class HallFame3PKM
|
||||
public sealed class HallFame3PKM
|
||||
{
|
||||
public const int SIZE = 20;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class PokeBlock3
|
||||
public sealed class PokeBlock3
|
||||
{
|
||||
public const int SIZE = 7;
|
||||
private readonly byte[] Data;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
namespace PKHeX.Core
|
||||
{
|
||||
public class PokeBlock3Case
|
||||
public sealed class PokeBlock3Case
|
||||
{
|
||||
private const int Count = 40;
|
||||
public readonly PokeBlock3[] Blocks;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class Roamer3 : IContestStats
|
||||
public sealed class Roamer3 : IContestStats
|
||||
{
|
||||
private readonly SaveFile SAV;
|
||||
private readonly int Offset;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class SecretBase3
|
||||
public sealed class SecretBase3
|
||||
{
|
||||
private readonly byte[] Data;
|
||||
private readonly int Offset;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class SecretBase3PKM
|
||||
public sealed class SecretBase3PKM
|
||||
{
|
||||
public uint PID { get; set; }
|
||||
public int Move1 { get; set; }
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class SecretBase3Team
|
||||
public sealed class SecretBase3Team
|
||||
{
|
||||
private const int O_PID = 0;
|
||||
private const int O_Moves = 0x18;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class ShadowInfoTableXD
|
||||
public sealed class ShadowInfoTableXD
|
||||
{
|
||||
private readonly List<ShadowInfoEntryXD> Entries;
|
||||
private readonly int MaxLength;
|
||||
|
|
@ -56,7 +56,7 @@ public void SetEntry(ShadowInfoEntryXD Entry)
|
|||
public int Count => Entries.Count;
|
||||
}
|
||||
|
||||
public class ShadowInfoEntryXD
|
||||
public sealed class ShadowInfoEntryXD
|
||||
{
|
||||
public readonly byte[] Data;
|
||||
internal const int SIZE_ENTRY = 72;
|
||||
|
|
@ -74,7 +74,7 @@ public class ShadowInfoEntryXD
|
|||
public bool IsEmpty => Species == 0;
|
||||
}
|
||||
|
||||
public class ShadowInfoEntryColo
|
||||
public sealed class ShadowInfoEntryColo
|
||||
{
|
||||
public readonly byte[] Data;
|
||||
private const int SIZE_ENTRY = 12;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class StrategyMemo
|
||||
public sealed class StrategyMemo
|
||||
{
|
||||
private readonly bool XD;
|
||||
private const int SIZE_ENTRY = 12;
|
||||
|
|
@ -51,7 +51,7 @@ public void SetEntry(StrategyMemoEntry entry)
|
|||
Entries.Add(entry);
|
||||
}
|
||||
|
||||
public class StrategyMemoEntry
|
||||
public sealed class StrategyMemoEntry
|
||||
{
|
||||
public readonly byte[] Data;
|
||||
private readonly bool XD;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace PKHeX.Core
|
|||
/// <summary>
|
||||
/// Honey Tree in Sinnoh (Gen4)
|
||||
/// </summary>
|
||||
public class HoneyTree
|
||||
public sealed class HoneyTree
|
||||
{
|
||||
public const int Size = 8;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class Poffin4
|
||||
public sealed class Poffin4
|
||||
{
|
||||
public const int SIZE = 8;
|
||||
public readonly byte[] Data;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ namespace PKHeX.Core
|
|||
/// <summary>
|
||||
/// Storage for all <see cref="Poffin4"/> the trainer has.
|
||||
/// </summary>
|
||||
public class PoffinCase4
|
||||
public sealed class PoffinCase4
|
||||
{
|
||||
private readonly SAV4Sinnoh SAV;
|
||||
private readonly int Offset;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class BattleSubway5 : SaveBlock
|
||||
public sealed class BattleSubway5 : SaveBlock
|
||||
{
|
||||
public BattleSubway5(SAV5 sav, int offset) : base(sav) => Offset = offset;
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,10 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class CGearBackground
|
||||
/// <summary>
|
||||
/// Generation 5 C-Gear Background Image
|
||||
/// </summary>
|
||||
public sealed class CGearBackground
|
||||
{
|
||||
public const string Extension = "cgb";
|
||||
public const string Filter = "C-Gear Background|*.cgb";
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class Daycare5 : SaveBlock
|
||||
public sealed class Daycare5 : SaveBlock
|
||||
{
|
||||
// struct daycareSlot
|
||||
// bool32 occupied
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class EntreeForest
|
||||
/// <summary>
|
||||
/// Generation 5 Entree Forest
|
||||
/// </summary>
|
||||
public sealed class EntreeForest
|
||||
{
|
||||
/// <summary>
|
||||
/// Areas 1 thru 8 have 20 slots.
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class EntreeSlot
|
||||
/// <summary>
|
||||
/// Generation 5 <see cref="EntreeForest"/> slot
|
||||
/// </summary>
|
||||
public sealed class EntreeSlot
|
||||
{
|
||||
/// <summary>
|
||||
/// <see cref="PKM.Species"/> index
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class MysteryBlock5 : SaveBlock
|
||||
public sealed class MysteryBlock5 : SaveBlock
|
||||
{
|
||||
private const int FlagStart = 0;
|
||||
private const int MaxReceivedFlag = 2048;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class PWTBlock5 : SaveBlock
|
||||
public sealed class PWTBlock5 : SaveBlock
|
||||
{
|
||||
public PWTBlock5(SAV5B2W2 sav, int offset) : base(sav) => Offset = offset;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class PlayerData5 : SaveBlock
|
||||
public sealed class PlayerData5 : SaveBlock
|
||||
{
|
||||
public PlayerData5(SAV5 sav, int offset) : base(sav) => Offset = offset;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
namespace PKHeX.Core
|
||||
{
|
||||
public class BoxLayout6 : SaveBlock
|
||||
public sealed class BoxLayout6 : SaveBlock
|
||||
{
|
||||
// gfstr5[31] boxNames;
|
||||
// byte[31] wallpapers;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class MysteryBlock6 : SaveBlock
|
||||
public sealed class MysteryBlock6 : SaveBlock
|
||||
{
|
||||
private const int FlagStart = 0;
|
||||
private const int MaxReceivedFlag = 2048;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class Puff6 : SaveBlock
|
||||
public sealed class Puff6 : SaveBlock
|
||||
{
|
||||
private const int MaxPuffID = 26; // Supreme Winter Poké Puff
|
||||
private const int PuffSlots = 100;
|
||||
|
|
@ -58,7 +58,7 @@ public void Sort(bool reverse = false)
|
|||
}
|
||||
|
||||
|
||||
public class BattleBox6 : SaveBlock
|
||||
public sealed class BattleBox6 : SaveBlock
|
||||
{
|
||||
public BattleBox6(SaveFile SAV, int offset) : base(SAV) => Offset = offset;
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class Record6 : RecordBlock
|
||||
public sealed class Record6 : RecordBlock
|
||||
{
|
||||
public const int RecordCount = 200;
|
||||
protected override IReadOnlyList<byte> RecordMax { get; }
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class SangoInfoBlock : SaveBlock
|
||||
public sealed class SangoInfoBlock : SaveBlock
|
||||
{
|
||||
public SangoInfoBlock(SaveFile SAV, int offset) : base(SAV) => Offset = offset;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class Situation6 : SaveBlock
|
||||
public sealed class Situation6 : SaveBlock
|
||||
{
|
||||
public Situation6(SaveFile SAV, int offset) : base(SAV) => Offset = offset;
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ public enum F6Skin
|
|||
}
|
||||
}
|
||||
|
||||
public class Fashion6Male : TrainerFashion6
|
||||
public sealed class Fashion6Male : TrainerFashion6
|
||||
{
|
||||
public Fashion6Male(byte[] data, int offset)
|
||||
: base(data, offset) { }
|
||||
|
|
@ -269,7 +269,7 @@ public enum F6HairStyleFront
|
|||
}
|
||||
}
|
||||
|
||||
public class Fashion6Female : TrainerFashion6
|
||||
public sealed class Fashion6Female : TrainerFashion6
|
||||
{
|
||||
public Fashion6Female(byte[] data, int offset)
|
||||
: base(data, offset) { }
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class BattleTree7 : SaveBlock
|
||||
public sealed class BattleTree7 : SaveBlock
|
||||
{
|
||||
public BattleTree7(SAV7 sav, int offset) : base(sav) => Offset = offset;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
namespace PKHeX.Core
|
||||
{
|
||||
public class Daycare7 : SaveBlock
|
||||
public sealed class Daycare7 : SaveBlock
|
||||
{
|
||||
public const int DaycareSeedSize = 32; // 128 bits
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class FieldMoveModelSave7 : SaveBlock
|
||||
public sealed class FieldMoveModelSave7 : SaveBlock
|
||||
{
|
||||
public FieldMoveModelSave7(SAV7 sav, int offset) : base(sav) => Offset = offset;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace PKHeX.Core
|
|||
/// <summary>
|
||||
/// Go Park Entity transferred from <see cref="GameVersion.GO"/> to <see cref="GameVersion.GG"/>.
|
||||
/// </summary>
|
||||
public class GP1
|
||||
public sealed class GP1
|
||||
{
|
||||
public const int SIZE = 0x1B0;
|
||||
public byte[] Data { get; }
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class MyStatus7 : SaveBlock
|
||||
public sealed class MyStatus7 : SaveBlock
|
||||
{
|
||||
public const int GameSyncIDSize = 16; // 64 bits
|
||||
public const int NexUniqueIDSize = 32; // 128 bits
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class PokeFinder7 : SaveBlock
|
||||
public sealed class PokeFinder7 : SaveBlock
|
||||
{
|
||||
public PokeFinder7(SAV7 sav, int offset) : base(sav) => Offset = offset;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class WB7Records : SaveBlock
|
||||
public sealed class WB7Records : SaveBlock
|
||||
{
|
||||
public WB7Records(SaveFile sav) : base(sav)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
namespace PKHeX.Core
|
||||
{
|
||||
public class WormholeInfoReader
|
||||
public sealed class WormholeInfoReader
|
||||
{
|
||||
public readonly SAV7 SAV;
|
||||
public WormholeInfoReader(SAV7 sav) => SAV = sav;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class FieldMoveModelSave8 : SaveBlock
|
||||
public sealed class FieldMoveModelSave8 : SaveBlock
|
||||
{
|
||||
public FieldMoveModelSave8(SAV8 sav, int offset) : base(sav) => Offset = offset;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class MyStatus8 : SaveBlock
|
||||
public sealed class MyStatus8 : SaveBlock
|
||||
{
|
||||
public MyStatus8(SAV8 sav, int offset) : base(sav) => Offset = offset;
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class Record8 : RecordBlock
|
||||
public sealed class Record8 : RecordBlock
|
||||
{
|
||||
public const int RecordCount = 200;
|
||||
protected override IReadOnlyList<byte> RecordMax { get; }
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace PKHeX.Core
|
|||
/// <summary>
|
||||
/// Reads the bean pouch data from a <see cref="SAV7"/>.
|
||||
/// </summary>
|
||||
public class BeanPouch
|
||||
public sealed class BeanPouch
|
||||
{
|
||||
public const int Count = 15;
|
||||
public static readonly string[] BeanIndexNames = GetBeanList();
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class InventoryItem
|
||||
public sealed class InventoryItem
|
||||
{
|
||||
public bool New;
|
||||
public bool FreeSpace;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class Mail2 : Mail
|
||||
public sealed class Mail2 : Mail
|
||||
{
|
||||
private readonly bool US;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class Mail3 : Mail
|
||||
public sealed class Mail3 : Mail
|
||||
{
|
||||
private const int SIZE = 0x24;
|
||||
private readonly bool JP;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class Mail4 : Mail
|
||||
public sealed class Mail4 : Mail
|
||||
{
|
||||
private const int SIZE = 0x38;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class Mail5 : Mail
|
||||
public sealed class Mail5 : Mail
|
||||
{
|
||||
private const int SIZE = 0x38;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class FestaFacility
|
||||
public sealed class FestaFacility
|
||||
{
|
||||
private const int SIZE = 0x48;
|
||||
private readonly byte[] Data;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
/// <summary>
|
||||
/// Structure containing the Mystery Gift Data
|
||||
/// </summary>
|
||||
public class MysteryGiftAlbum
|
||||
public sealed class MysteryGiftAlbum
|
||||
{
|
||||
/// <summary>
|
||||
/// Mystery Gift data received
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class OPower6 : SaveBlock
|
||||
public sealed class OPower6 : SaveBlock
|
||||
{
|
||||
private static readonly OPowerFlagSet[] Mapping =
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
public class Zukan5 : Zukan
|
||||
public sealed class Zukan5 : Zukan
|
||||
{
|
||||
protected override int OFS_SEEN => OFS_CAUGHT + BitSeenSize;
|
||||
protected override int OFS_CAUGHT => 0x8;
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ private bool[] GetBlankLanguageBits(bool value)
|
|||
}
|
||||
}
|
||||
|
||||
public class Zukan6AO : Zukan6
|
||||
public sealed class Zukan6AO : Zukan6
|
||||
{
|
||||
public Zukan6AO(SaveFile sav, int dex, int langflag) : base(sav, dex, langflag)
|
||||
{
|
||||
|
|
@ -197,7 +197,7 @@ public void SetEncounterCount(int index, ushort value)
|
|||
}
|
||||
}
|
||||
|
||||
public class Zukan6XY : Zukan6
|
||||
public sealed class Zukan6XY : Zukan6
|
||||
{
|
||||
public Zukan6XY(SaveFile sav, int dex, int langflag) : base(sav, dex, langflag)
|
||||
{
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user