PKHeX/PKHeX.Core/Legality/Encounters/EncounterStaticShadow.cs
Kurt 62d08d7c30 Misc clean
split some methods with optional parameters=null
add more xmldoc
replace some magic numbers -> enum/const references
consolidate common array operations (span soon maybe?)
2019-09-10 00:21:51 -07:00

38 lines
No EOL
1.1 KiB
C#

using System;
namespace PKHeX.Core
{
/// <summary>
/// Shadow Pokémon Encounter found in <see cref="GameVersion.CXD"/>
/// </summary>
public sealed class EncounterStaticShadow : EncounterStatic
{
/// <summary>
/// Team Specification with required <see cref="Species"/>, <see cref="Nature"/> and Gender.
/// </summary>
public TeamLock[] Locks { get; internal set; } = Array.Empty<TeamLock>();
/// <summary>
/// Initial Shadow Gauge value.
/// </summary>
public int Gauge { get; internal set; }
/// <summary>
/// Originates from the EReader scans (Japanese Only)
/// </summary>
public bool EReader { get; set; }
internal override EncounterStatic Clone()
{
var result = (EncounterStaticShadow)base.Clone();
if (Locks.Length == 0)
return result;
result.Locks = new TeamLock[Locks.Length];
for (int i = 0; i < Locks.Length; i++)
result.Locks[i] = Locks[i].Clone();
return result;
}
}
}