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;
|
namespace MultiversalDiplomacy.Model;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The type of a unit.
|
/// The type of a unit.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[JsonConverter(typeof(JsonStringEnumConverter<UnitType>))]
|
||||||
public enum UnitType
|
public enum UnitType
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue