2018-08-03 03:11:42 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace PKHeX.Core
|
2018-03-09 05:18:32 +00:00
|
|
|
|
{
|
2018-10-22 01:55:02 +00:00
|
|
|
|
public class EncounterStaticShadow : EncounterStatic
|
2018-03-09 05:18:32 +00:00
|
|
|
|
{
|
2018-10-21 02:03:04 +00:00
|
|
|
|
public TeamLock[] Locks { get; internal set; } = Array.Empty<TeamLock>();
|
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();
|
2018-10-21 02:03:04 +00:00
|
|
|
|
if (Locks.Length > 0)
|
|
|
|
|
{
|
|
|
|
|
result.Locks = new TeamLock[Locks.Length];
|
|
|
|
|
for (int i = 0; i < Locks.Length; i++)
|
|
|
|
|
result.Locks[i] = Locks[i].Clone();
|
|
|
|
|
}
|
2018-03-09 05:18:32 +00:00
|
|
|
|
return result;
|
|
|
|
|
}
|
2018-10-21 02:03:04 +00:00
|
|
|
|
}
|
2018-03-09 05:18:32 +00:00
|
|
|
|
|
2018-10-21 02:03:04 +00:00
|
|
|
|
public class TeamLock
|
|
|
|
|
{
|
|
|
|
|
public int Species;
|
|
|
|
|
public string Comment;
|
|
|
|
|
public NPCLock[] Locks;
|
|
|
|
|
|
|
|
|
|
internal TeamLock Clone()
|
2018-03-09 05:18:32 +00:00
|
|
|
|
{
|
2018-10-21 02:03:04 +00:00
|
|
|
|
var c = new TeamLock { Comment = Comment, Locks = (NPCLock[])Locks.Clone() };
|
|
|
|
|
for (int i = 0; i < Locks.Length; i++)
|
|
|
|
|
Locks[i] = Locks[i].Clone();
|
|
|
|
|
return c;
|
2018-03-09 05:18:32 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|