Settings ToString
This commit is contained in:
parent
d102c970ec
commit
47b721d419
@ -1,4 +1,6 @@
|
||||
namespace OpenCS2hock;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace OpenCS2hock;
|
||||
|
||||
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)
|
||||
{
|
||||
return str.ToLower() switch
|
||||
|
Loading…
Reference in New Issue
Block a user