forked from samyycX/CS2-PlayerModelChanger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfig.cs
37 lines (28 loc) · 1.63 KB
/
Config.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System.Text.Json.Serialization;
using CounterStrikeSharp.API.Core;
using CounterStrikeSharp.API.Modules.Utils;
using Serilog.Debugging;
using Service;
namespace Config;
public class BotsConfig
{
public string CT { get; set; } = "";
public string T { get; set; } = "";
}
public class ModelConfig : BasePluginConfig
{
[JsonPropertyName("Models")] public Dictionary<string, Model> Models { get; set; } = new Dictionary<string, Model>();
[JsonPropertyName("MenuType")] public string MenuType { get; set; } = "centerhtml"; // chat or centerhtml
[JsonPropertyName("StorageType")] public string StorageType { get; set; } = "sqlite";
[JsonPropertyName("MySQL_IP")] public string MySQLIP { get; set; } = "";
[JsonPropertyName("MySQL_Port")] public string MySQLPort { get; set; } = "";
[JsonPropertyName("MySQL_User")] public string MySQLUser { get; set; } = "";
[JsonPropertyName("MySQL_Password")] public string MySQLPassword { get; set; } = "";
[JsonPropertyName("MySQL_Database")] public string MySQLDatabase { get; set; } = "";
[JsonPropertyName("MySQL_Table")] public string MySQLTable { get; set; } = "playermodelchanger";
[JsonPropertyName("ModelForBots")] public BotsConfig ModelForBots { get; set; } = new BotsConfig();
[JsonPropertyName("DisablePrecache")] public bool DisablePrecache { get; set; } = false;
[JsonPropertyName("DisableRandomModel")] public bool DisableRandomModel { get; set; } = false;
[JsonPropertyName("DisableAutoCheck")] public bool DisableAutoCheck { get; set; } = false;
[JsonPropertyName("AutoResyncCache")] public bool AutoResyncCache { get; set; } = false;
}