Implements move execution for battle

This commit is contained in:
Deukhoofd committed 2024-08-10 11:18:10 +02:00
1 parent a049dda240
commit 488c717c5a
17 files changed
+433 -14

No files matched your search

@@ -1,6 +1,5 @@
using System.Collections;
using System.Diagnostics.CodeAnalysis;
using PkmnLib.Static.Utils;
namespace PkmnLib.Dynamic.ScriptHandling;
@@ -44,6 +43,10 @@ public class ScriptContainer : IEnumerable<ScriptContainer>
return GetEnumerator();
}
/// <summary>
/// Assigns a new script to this container. If there was a script already, it is removed.
/// </summary>
/// <param name="script"></param>
public void Set(Script script)
{
if (Script is not null)