Serialize unit type as string

This commit is contained in:
Tim Van Baak 2024-08-14 18:53:36 -07:00
parent 8f5dc63833
commit a4002a1081
1 changed files with 3 additions and 0 deletions

View File

@ -1,8 +1,11 @@
using System.Text.Json.Serialization;
namespace MultiversalDiplomacy.Model;
/// <summary>
/// The type of a unit.
/// </summary>
[JsonConverter(typeof(JsonStringEnumConverter<UnitType>))]
public enum UnitType
{
/// <summary>