2018-08-03 03:11:42 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace PKHeX.Core
|
2018-03-09 05:18:32 +00:00
|
|
|
|
{
|
|
|
|
|
internal class EncounterStaticShadow : EncounterStatic
|
|
|
|
|
{
|
2018-08-03 03:11:42 +00:00
|
|
|
|
public EncounterLock[][] Locks { get; internal set; } = Array.Empty<EncounterLock[]>();
|
2018-03-09 05:18:32 +00:00
|
|
|
|
public int Gauge { get; internal set; }
|
|
|
|
|
public bool EReader { get; set; }
|
2018-08-03 03:11:42 +00:00
|
|
|
|
|
2018-03-09 05:18:32 +00:00
|
|
|
|
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();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|