PKHeX/PKHeX.Core/Legality/RNG/Locks/TeamLock.cs
Kurt 950ddcf9fd Reduce npclock object size
24 bytes per object -> 16 bytes
2,624 objects are made for legality checking; reduces from 73KB to 41KB
removing unnecessary clone recreation -> count from 2624 -> 414 (41KB to
6.6KB)
yay 10x reduction; not huge in the big picture but a fun exercise
2019-01-06 20:58:57 -08:00

14 lines
No EOL
297 B
C#

namespace PKHeX.Core
{
public class TeamLock
{
public int Species;
public string Comment;
public NPCLock[] Locks;
internal TeamLock Clone()
{
return new TeamLock { Comment = Comment, Locks = (NPCLock[])Locks.Clone() };
}
}
}