Skip to content

Commit 3ea1616

Browse files
committed
namespace refactoring
1 parent df82d9d commit 3ea1616

File tree

3 files changed

+37
-56
lines changed

3 files changed

+37
-56
lines changed
+10-16
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
11
using CounterStrikeSharp.API.Core;
22
using CounterStrikeSharp.API.Modules.Utils;
3-
using System;
4-
using System.Collections.Generic;
5-
using System.Linq;
6-
using System.Text;
73
using System.Text.Json.Serialization;
8-
using System.Threading.Tasks;
94

10-
namespace CustomCommands
5+
namespace CustomCommands;
6+
7+
public class CustomCommandsConfig : BasePluginConfig
118
{
12-
public class CustomCommandsConfig : BasePluginConfig
13-
{
14-
[JsonPropertyName("IsPluginEnabled")]
15-
public bool IsPluginEnabled { get; set; } = true;
9+
[JsonPropertyName("IsPluginEnabled")]
10+
public bool IsPluginEnabled { get; set; } = true;
1611

17-
[JsonPropertyName("LogPrefix")]
18-
public string LogPrefix { get; set; } = "CSSharp";
12+
[JsonPropertyName("LogPrefix")]
13+
public string LogPrefix { get; set; } = "CSSharp";
1914

20-
[JsonPropertyName("Prefix")]
21-
public string Prefix { get; set; } = $"[{ChatColors.Yellow}Info{ChatColors.Default}] ";
22-
}
23-
}
15+
[JsonPropertyName("Prefix")]
16+
public string Prefix { get; set; } = $"[{ChatColors.Yellow}Info{ChatColors.Default}] ";
17+
}

CustomCommands/Model/Commands.cs

+22-28
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,24 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
6-
7-
namespace CustomCommands.Model
1+

2+
namespace CustomCommands.Model;
3+
public class Commands
4+
{
5+
public string Title { get; set; } = "";
6+
public string Command { get; set; } = "testtesttest";
7+
public string Message { get; set; } = "testtesttest";
8+
public string CenterMessage { get; set; } = "test";
9+
public int CenterMessageTime { get; set; } = 1;
10+
public Sender PrintTo { get; set; } = Sender.ClientChat;
11+
public string Description { get; set; } = "Description";
12+
}
13+
public enum Sender
814
{
9-
public class Commands
10-
{
11-
public string Title { get; set; } = "";
12-
public string Command { get; set; } = "testtesttest";
13-
public string Message { get; set; } = "testtesttest";
14-
public string CenterMessage { get; set; } = "test";
15-
public int CenterMessageTime { get; set; } = 1;
16-
public Sender PrintTo { get; set; } = Sender.ClientChat;
17-
public string Description { get; set; } = "Description";
18-
}
19-
public enum Sender
20-
{
21-
ClientChat = 0,
22-
AllChat = 1,
23-
ClientCenter = 2,
24-
AllCenter = 3,
25-
ClientChatClientCenter = 4,
26-
ClientChatAllCenter = 5,
27-
AllChatClientCenter = 6,
28-
AllChatAllCenter = 7
29-
}
15+
ClientChat = 0,
16+
AllChat = 1,
17+
ClientCenter = 2,
18+
AllCenter = 3,
19+
ClientChatClientCenter = 4,
20+
ClientChatAllCenter = 5,
21+
AllChatClientCenter = 6,
22+
AllChatAllCenter = 7
3023
}
24+

CustomCommands/Model/Receiver.cs

+5-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
61

7-
namespace CustomCommands.Model
2+
namespace CustomCommands.Model;
3+
public enum Receiver
84
{
9-
public enum Receiver
10-
{
11-
Client = 0,
12-
Server = 1
13-
}
14-
}
5+
Client = 0,
6+
Server = 1
7+
}

0 commit comments

Comments
 (0)