mirror of
https://github.com/kwsch/PKHeX
synced 2025-01-06 17:48:47 +00:00
3f38b123a3
mostly renaming things, includes a little bit of added sugar and splitting methods to simplify the codebase. all methods are now PascalCase
26 lines
747 B
C#
26 lines
747 B
C#
namespace PKHeX.Core
|
|
{
|
|
public class Frame
|
|
{
|
|
public readonly uint Seed;
|
|
public readonly LeadRequired Lead;
|
|
|
|
private readonly FrameType FrameType;
|
|
private readonly RNG RNG;
|
|
|
|
public uint ESV { get; set; }
|
|
public int EncounterSlot(SlotType t) => SlotRange.GetSlot(t, ESV, FrameType);
|
|
public void SetOriginSeed(int Offset) => OriginSeed = RNG.Reverse(Seed, Offset);
|
|
public bool LevelSlotModified => Lead > LeadRequired.SynchronizeFail;
|
|
|
|
public uint OriginSeed;
|
|
|
|
public Frame(uint seed, FrameType type, RNG rng, LeadRequired lead)
|
|
{
|
|
Seed = seed;
|
|
Lead = lead;
|
|
FrameType = type;
|
|
RNG = rng;
|
|
}
|
|
}
|
|
}
|