mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 16:48:01 +00:00
452ffe2369
relocate location of stuff
26 lines
No EOL
832 B
C#
26 lines
No EOL
832 B
C#
namespace PKHeX.Core
|
|
{
|
|
internal class EncounterStaticShadow : EncounterStatic
|
|
{
|
|
public EncounterLock[][] Locks { get; internal set; } = new EncounterLock[0][];
|
|
public int Gauge { get; internal set; }
|
|
public bool EReader { get; set; }
|
|
internal override EncounterStatic Clone()
|
|
{
|
|
var result = (EncounterStaticShadow)base.Clone();
|
|
result.CloneLocks();
|
|
return result;
|
|
}
|
|
|
|
private void CloneLocks()
|
|
{
|
|
Locks = new EncounterLock[Locks.Length][];
|
|
for (var i = 0; i < Locks.Length; i++)
|
|
{
|
|
Locks[i] = (EncounterLock[])Locks[i].Clone();
|
|
for (int j = 0; j < Locks[i].Length; j++)
|
|
Locks[i][j] = Locks[i][j].Clone();
|
|
}
|
|
}
|
|
}
|
|
} |