mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 16:48:01 +00:00
62d08d7c30
split some methods with optional parameters=null add more xmldoc replace some magic numbers -> enum/const references consolidate common array operations (span soon maybe?)
38 lines
No EOL
1.1 KiB
C#
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;
|
|
}
|
|
}
|
|
} |