mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 20:43:07 +00:00
Move files to their correct location
This commit is contained in:
parent
bbe1cf3ee1
commit
8ce4f64239
5 changed files with 28 additions and 52 deletions
|
@ -1,26 +0,0 @@
|
|||
namespace PKHeX.Core
|
||||
{
|
||||
public enum SAV8BlockIndex
|
||||
{
|
||||
// todo
|
||||
MyItem,
|
||||
Situation,
|
||||
RandomGroup,
|
||||
MyStatus,
|
||||
PokePartySave,
|
||||
EventWork,
|
||||
ZukanData,
|
||||
GtsData,
|
||||
UnionPokemon,
|
||||
Misc,
|
||||
FieldMenu,
|
||||
ConfigSave,
|
||||
GameTime,
|
||||
BOX,
|
||||
BoxPokemon,
|
||||
PlayTime,
|
||||
FieldMoveModelSave,
|
||||
Records,
|
||||
Pokedex
|
||||
}
|
||||
}
|
27
PKHeX.Core/Saves/Substructures/Gen6/BattleBox6.cs
Normal file
27
PKHeX.Core/Saves/Substructures/Gen6/BattleBox6.cs
Normal file
|
@ -0,0 +1,27 @@
|
|||
namespace PKHeX.Core
|
||||
{
|
||||
public sealed class BattleBox6 : SaveBlock
|
||||
{
|
||||
public BattleBox6(SaveFile SAV, int offset) : base(SAV) => Offset = offset;
|
||||
|
||||
private int LockedFlagOffset => Offset + (6 * PokeCrypto.SIZE_6STORED);
|
||||
|
||||
public bool Locked
|
||||
{
|
||||
get => LockedWiFiTournament || LockedLiveTournament;
|
||||
set => LockedWiFiTournament = LockedLiveTournament = value;
|
||||
}
|
||||
|
||||
public bool LockedWiFiTournament
|
||||
{
|
||||
get => (Data[LockedFlagOffset] & 1) != 0;
|
||||
set => Data[LockedFlagOffset] = (byte)((Data[Offset + LockedFlagOffset] & ~1) | (value ? 1 : 0));
|
||||
}
|
||||
|
||||
public bool LockedLiveTournament
|
||||
{
|
||||
get => (Data[LockedFlagOffset] & 2) != 0;
|
||||
set => Data[LockedFlagOffset] = (byte)((Data[Offset + LockedFlagOffset] & ~2) | (value ? 2 : 0));
|
||||
}
|
||||
}
|
||||
}
|
|
@ -57,29 +57,4 @@ namespace PKHeX.Core
|
|||
Array.Reverse(Data, Offset, PuffCount);
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class BattleBox6 : SaveBlock
|
||||
{
|
||||
public BattleBox6(SaveFile SAV, int offset) : base(SAV) => Offset = offset;
|
||||
|
||||
private int LockedFlagOffset => Offset + (6 * PokeCrypto.SIZE_6STORED);
|
||||
|
||||
public bool Locked
|
||||
{
|
||||
get => LockedWiFiTournament || LockedLiveTournament;
|
||||
set => LockedWiFiTournament = LockedLiveTournament = value;
|
||||
}
|
||||
|
||||
public bool LockedWiFiTournament
|
||||
{
|
||||
get => (Data[LockedFlagOffset] & 1) != 0;
|
||||
set => Data[LockedFlagOffset] = (byte)((Data[Offset + LockedFlagOffset] & ~1) | (value ? 1 : 0));
|
||||
}
|
||||
|
||||
public bool LockedLiveTournament
|
||||
{
|
||||
get => (Data[LockedFlagOffset] & 2) != 0;
|
||||
set => Data[LockedFlagOffset] = (byte)((Data[Offset + LockedFlagOffset] & ~2) | (value ? 2 : 0));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue