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 PkmnLib.Dynamic.Models.Choices;
using PkmnLib.Dynamic.ScriptHandling;
using PkmnLib.Static.Utils;
namespace PkmnLib.Dynamic.Models;
@@ -11,7 +12,7 @@ namespace PkmnLib.Dynamic.Models;
/// It holds several helper functions to change the turn order while doing the execution. This is needed, as several
/// moves in Pokémon actively mess with this order.
/// </remarks>
public class BattleChoiceQueue
public class BattleChoiceQueue : IDeepCloneable
{
private readonly ITurnChoice?[] _choices;
private int _currentIndex;