Implements move execution for battle
This commit is contained in:
23
PkmnLib.Dynamic/Events/MoveUseEvent.cs
Normal file
23
PkmnLib.Dynamic/Events/MoveUseEvent.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using PkmnLib.Dynamic.Models;
|
||||
|
||||
namespace PkmnLib.Dynamic.Events;
|
||||
|
||||
/// <summary>
|
||||
/// Runs when a move is used, before the move is executed.
|
||||
/// </summary>
|
||||
public class MoveUseEvent : IEventData
|
||||
{
|
||||
/// <summary>
|
||||
/// The move that is being executed.
|
||||
/// </summary>
|
||||
public IExecutingMove ExecutingMove { get; }
|
||||
|
||||
/// <inheritdoc cref="MoveUseEvent"/>
|
||||
public MoveUseEvent(IExecutingMove executingMove)
|
||||
{
|
||||
ExecutingMove = executingMove;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public EventBatchId BatchId { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user