Support for deep cloning battles and Pokemon

This commit is contained in:
Deukhoofd committed 2024-12-29 13:51:59 +01:00
1 parent b3529fa22f
commit 40803f0269
13 files changed
+356 -12

No files matched your search

+2 -1
View File
@@ -1,5 +1,6 @@
using System.Collections;
using System.Diagnostics.CodeAnalysis;
using PkmnLib.Static.Utils;
namespace PkmnLib.Static;
@@ -83,7 +84,7 @@ public record ImmutableStatisticSet<T>
/// A set of statistics that can be changed.
/// </summary>
/// <typeparam name="T"></typeparam>
public record StatisticSet<T> : ImmutableStatisticSet<T>, IEnumerable<T>
public record StatisticSet<T> : ImmutableStatisticSet<T>, IEnumerable<T>, IDeepCloneable
where T : struct
{
/// <inheritdoc cref="StatisticSet{T}"/>