mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
24 lines
656 B
C#
24 lines
656 B
C#
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
using System.ComponentModel;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace NewHorizons.External.Modules.Props
|
|
{
|
|
[JsonObject]
|
|
public class NomaiComputerInfo : GeneralPropInfo
|
|
{
|
|
/// <summary>
|
|
/// What design the computer will use.
|
|
/// </summary>
|
|
[DefaultValue(NomaiComputerType.NORMAL)] public NomaiComputerType type = NomaiComputerType.NORMAL;
|
|
}
|
|
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public enum NomaiComputerType
|
|
{
|
|
[EnumMember(Value = @"normal")] NORMAL = 0,
|
|
[EnumMember(Value = @"precrash")] PRECRASH = 1
|
|
}
|
|
}
|