5dplomacy/MultiversalDiplomacy/Model/UnitType.cs

21 lines
430 B
C#

using System.Text.Json.Serialization;
namespace MultiversalDiplomacy.Model;
/// <summary>
/// The type of a unit.
/// </summary>
[JsonConverter(typeof(JsonStringEnumConverter<UnitType>))]
public enum UnitType
{
/// <summary>
/// A unit that moves on land.
/// </summary>
Army = 0,
/// <summary>
/// A unit that moves in oceans and along coasts and can convoy armies.
/// </summary>
Fleet = 1,
}