Support for deep cloning battles and Pokemon

This commit is contained in:
2024-12-29 13:51:59 +01:00
parent b3529fa22f
commit 40803f0269
13 changed files with 356 additions and 12 deletions

View File

@@ -12,7 +12,7 @@ namespace PkmnLib.Dynamic.Models;
/// <summary>
/// The data of a Pokemon.
/// </summary>
public interface IPokemon : IScriptSource
public interface IPokemon : IScriptSource, IDeepCloneable
{
/// <summary>
/// The library data of the Pokemon.
@@ -352,7 +352,7 @@ public interface IPokemon : IScriptSource
/// The data of the Pokémon related to being in a battle.
/// This is only set when the Pokémon is on the field in a battle.
/// </summary>
public interface IPokemonBattleData
public interface IPokemonBattleData : IDeepCloneable
{
/// <summary>
/// The battle the Pokémon is in.