mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-24 03:13:18 +00:00
1486b7f14a
Remove move combobox flicker hack (no longer necessary) Add more Array.Empty usages cache mysterygift sizes seal some classes no functionality changes
29 lines
No EOL
856 B
C#
29 lines
No EOL
856 B
C#
using System;
|
|
|
|
namespace PKHeX.Core
|
|
{
|
|
internal class EncounterStaticShadow : EncounterStatic
|
|
{
|
|
public EncounterLock[][] Locks { get; internal set; } = Array.Empty<EncounterLock[]>();
|
|
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();
|
|
}
|
|
}
|
|
}
|
|
} |