mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-24 03:13:18 +00:00
950ddcf9fd
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
No EOL
297 B
C#
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() };
|
|
}
|
|
}
|
|
} |