using MultiversalDiplomacy.Orders;
namespace MultiversalDiplomacy.Adjudicate;
///
/// Represents the result of adjudicating an order.
///
public class OrderAdjudication
{
///
/// The order that was adjudicated.
///
public Order Order { get; }
///
/// Whether the order succeeded or failed.
///
public bool Success { get; }
// ///
// /// The reason for the order's outcome.
// ///
// public string Reason { get; }
public OrderAdjudication(Order order, bool success/*, string reason*/)
{
this.Order = order;
this.Success = success;
// this.Reason = reason;
}
}
public static class OrderAdjudicationExtensions
{
///
/// Create an accepting this order.
///
public static OrderAdjudication Succeed(this Order order)
=> new OrderAdjudication(order, true);
}