5dplomacy/MultiversalDiplomacy/Model/UnitType.cs

21 lines
430 B
C#
Raw Normal View History

2024-08-15 01:53:36 +00:00
using System.Text.Json.Serialization;
2022-02-18 20:13:23 +00:00
namespace MultiversalDiplomacy.Model;
/// <summary>
/// The type of a unit.
/// </summary>
2024-08-15 01:53:36 +00:00
[JsonConverter(typeof(JsonStringEnumConverter<UnitType>))]
2022-02-18 20:13:23 +00:00
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,
}