Serialize unit type as string
This commit is contained in:
parent
8f5dc63833
commit
a4002a1081
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue