Add generic ruleset config.

This commit is contained in:
2022-11-16 00:25:08 +08:00
parent 15e66d29c4
commit 852c93c6d0
3 changed files with 23 additions and 11 deletions

View File

@@ -1,12 +1,18 @@
using System.Collections.Generic;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace Cryville.Crtr.Config {
public class RulesetConfig {
public Dictionary<string, InputConfigEntry> inputs
= new Dictionary<string, InputConfigEntry>();
}
public class InputConfigEntry {
public string handler;
public int type;
public Generic generic = new Generic();
public class Generic {
[JsonProperty("skin")]
public string Skin { get; set; }
}
public Dictionary<string, InputEntry> inputs
= new Dictionary<string, InputEntry>();
public class InputEntry {
public string handler;
public int type;
}
}
}