namespace PkmnLib.Dynamic.Models;
public record struct BattleResult
{
private BattleResult(bool conclusiveResult, byte? winningSide)
{
ConclusiveResult = conclusiveResult;
WinningSide = winningSide;
}
public static BattleResult Inconclusive => new(false, null);
public static BattleResult Conclusive(byte winningSide) => new(true, winningSide);
///
/// Whether the battle has a conclusive result. If false, no side has won.
///
public bool ConclusiveResult { get; }
///
/// The side that won the battle. If null, no side has won.
///
public byte? WinningSide { get; }
}