5dplomacy/MultiversalDiplomacy/Orders/BuildOrder.cs

27 lines
567 B
C#
Raw Permalink Normal View History

2022-02-19 00:58:16 +00:00
using MultiversalDiplomacy.Model;
namespace MultiversalDiplomacy.Orders;
/// <summary>
/// An order to build a unit.
/// </summary>
public class BuildOrder : Order
{
/// <summary>
/// The location in which to build the unit.
/// </summary>
public Location Location { get; }
/// <summary>
/// The type of unit to build.
/// </summary>
public UnitType Type { get; }
2024-08-15 14:30:43 +00:00
public BuildOrder(string power, Location location, UnitType type)
2022-02-19 00:58:16 +00:00
: base (power)
{
this.Location = location;
this.Type = type;
}
}