MMM obsolete

This commit is contained in:
Nick 2023-08-26 19:48:31 -04:00
parent 10f4c7a5a1
commit b92e67f79c
5 changed files with 38 additions and 6 deletions

View File

@ -0,0 +1,6 @@
namespace NewHorizons.External.Modules.Props.Quantum;
internal class BaseQuantumGroupInfo
{
public string id;
}

View File

@ -1,9 +1,11 @@
using Newtonsoft.Json;
using System;
using System.ComponentModel;
namespace NewHorizons.External.Modules.Props.Quantum
{
[JsonObject]
[Obsolete]
public class QuantumGroupInfo
{
/// <summary>
@ -35,10 +37,5 @@ namespace NewHorizons.External.Modules.Props.Quantum
/// Optional. Only used if type is `states` and `sequential` is true. If this is false, then after the last state has appeared, the object will no longer change state
/// </summary>
[DefaultValue(true)] public bool loop = true;
/// <summary>
/// Flash of lightning and changes state
/// </summary>
public bool lightning;
}
}

View File

@ -1,10 +1,12 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
using System.Runtime.Serialization;
namespace NewHorizons.External.Modules.Props.Quantum
{
[JsonConverter(typeof(StringEnumConverter))]
[Obsolete]
public enum QuantumGroupType
{
[EnumMember(Value = @"sockets")] Sockets = 0,

View File

@ -0,0 +1,9 @@
using Newtonsoft.Json;
namespace NewHorizons.External.Modules.Props.Quantum;
[JsonObject]
internal class SocketQuantumGroupInfo : BaseQuantumGroupInfo
{
QuantumSocketInfo[] sockets;
}

View File

@ -0,0 +1,18 @@
using Newtonsoft.Json;
using System.ComponentModel;
namespace NewHorizons.External.Modules.Props.Quantum;
[JsonObject]
internal class StatesQuantumGroupInfo : BaseQuantumGroupInfo
{
/// <summary>
/// Optional. If this is true, then the states will be presented in order, rather than in a random order
/// </summary>
public bool sequential;
/// <summary>
/// Optional. Only used if `sequential` is true. If this is false, then after the last state has appeared, the object will no longer change state
/// </summary>
[DefaultValue(true)] public bool loop = true;
}