Settings ToString

This commit is contained in:
glax 2024-01-14 01:04:55 +01:00
parent d102c970ec
commit 47b721d419

View File

@ -1,4 +1,6 @@
namespace OpenCS2hock; using Newtonsoft.Json;
namespace OpenCS2hock;
public struct Settings public struct Settings
{ {
@ -36,6 +38,11 @@ public struct Settings
} }
public override string ToString()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
public static Shocker.ControlAction StringToAction(string str) public static Shocker.ControlAction StringToAction(string str)
{ {
return str.ToLower() switch return str.ToLower() switch