mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-12 23:06:58 -05:00
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
14 lines
297 B
C#
14 lines
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() };
|
|
}
|
|
}
|
|
} |