🎨 namespaces

This commit is contained in:
2023-04-09 11:06:52 +04:00
parent bfd6c1b54b
commit 24c9aa2043
25 changed files with 44 additions and 12 deletions
+2
View File
@@ -18,6 +18,8 @@ using NLog;
using Ragon.Server; using Ragon.Server;
using Ragon.Server.ENet; using Ragon.Server.ENet;
using Ragon.Server.DotNetWebsockets; using Ragon.Server.DotNetWebsockets;
using Ragon.Server.IO;
using Ragon.Server.Plugin;
namespace Ragon.Relay; namespace Ragon.Relay;
+3
View File
@@ -1,5 +1,8 @@
using System; using System;
using Ragon.Server; using Ragon.Server;
using Ragon.Server.Entity;
using Ragon.Server.Plugin;
using Ragon.Server.Room;
namespace Ragon.Relay; namespace Ragon.Relay;
+3 -1
View File
@@ -1,6 +1,8 @@
using System;
using System.Net.Http; using System.Net.Http;
using Ragon.Server; using Ragon.Server;
using Ragon.Server.Lobby;
using Ragon.Server.Plugin;
using Ragon.Server.Room;
namespace Ragon.Relay; namespace Ragon.Relay;
@@ -14,8 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
using System.Net.WebSockets;
using NLog; using NLog;
using System.Net.WebSockets;
using Ragon.Server.IO;
namespace Ragon.Server.DotNetWebsockets; namespace Ragon.Server.DotNetWebsockets;
@@ -15,7 +15,7 @@
*/ */
using System.Net.WebSockets; using System.Net.WebSockets;
using Ragon.Server; using Ragon.Server.IO;
namespace Ragon.Server.DotNetWebsockets; namespace Ragon.Server.DotNetWebsockets;
@@ -18,6 +18,7 @@ using System.Net;
using System.Net.WebSockets; using System.Net.WebSockets;
using NLog; using NLog;
using Ragon.Protocol; using Ragon.Protocol;
using Ragon.Server.IO;
namespace Ragon.Server.DotNetWebsockets; namespace Ragon.Server.DotNetWebsockets;
@@ -15,6 +15,7 @@
*/ */
using ENet; using ENet;
using Ragon.Server.IO;
namespace Ragon.Server.ENet; namespace Ragon.Server.ENet;
@@ -15,6 +15,7 @@
*/ */
using ENet; using ENet;
using Ragon.Server.IO;
namespace Ragon.Server.ENet; namespace Ragon.Server.ENet;
+1
View File
@@ -17,6 +17,7 @@
using ENet; using ENet;
using NLog; using NLog;
using Ragon.Protocol; using Ragon.Protocol;
using Ragon.Server.IO;
namespace Ragon.Server.ENet namespace Ragon.Server.ENet
{ {
@@ -15,6 +15,7 @@
*/ */
using ENet; using ENet;
using Ragon.Server.IO;
namespace Ragon.Server.ENet; namespace Ragon.Server.ENet;
@@ -16,9 +16,9 @@
using NLog; using NLog;
using Ragon.Protocol; using Ragon.Protocol;
using Ragon.Server.Hander;
using Ragon.Server.Lobby; using Ragon.Server.Lobby;
using Ragon.Server.Plugin; using Ragon.Server.Plugin;
using Ragon.Server.Plugin.Web;
namespace Ragon.Server.Handler; namespace Ragon.Server.Handler;
@@ -16,7 +16,7 @@
using NLog; using NLog;
using Ragon.Protocol; using Ragon.Protocol;
using Ragon.Server.Hander; using Ragon.Server.Entity;
namespace Ragon.Server.Handler; namespace Ragon.Server.Handler;
@@ -16,7 +16,7 @@
using NLog; using NLog;
using Ragon.Protocol; using Ragon.Protocol;
using Ragon.Server.Hander; using Ragon.Server.Entity;
namespace Ragon.Server.Handler; namespace Ragon.Server.Handler;
@@ -18,9 +18,10 @@ using NLog;
using Ragon.Protocol; using Ragon.Protocol;
using Ragon.Server.Lobby; using Ragon.Server.Lobby;
using Ragon.Server.Plugin; using Ragon.Server.Plugin;
using Ragon.Server.Plugin.Web;
using Ragon.Server.Room; using Ragon.Server.Room;
namespace Ragon.Server.Hander; namespace Ragon.Server.Handler;
public sealed class RoomCreateOperation: IRagonOperation public sealed class RoomCreateOperation: IRagonOperation
{ {
@@ -16,7 +16,9 @@
using NLog; using NLog;
using Ragon.Protocol; using Ragon.Protocol;
using Ragon.Server.Web; using Ragon.Server.Plugin;
using Ragon.Server.Plugin.Web;
using Ragon.Server.Room;
namespace Ragon.Server.Handler; namespace Ragon.Server.Handler;
@@ -16,7 +16,10 @@
using NLog; using NLog;
using Ragon.Protocol; using Ragon.Protocol;
using Ragon.Server.Web; using Ragon.Server.Lobby;
using Ragon.Server.Plugin;
using Ragon.Server.Plugin.Web;
using Ragon.Server.Room;
namespace Ragon.Server.Handler; namespace Ragon.Server.Handler;
@@ -17,6 +17,7 @@
using NLog; using NLog;
using Ragon.Protocol; using Ragon.Protocol;
using Ragon.Server.Plugin; using Ragon.Server.Plugin;
using Ragon.Server.Plugin.Web;
namespace Ragon.Server.Handler; namespace Ragon.Server.Handler;
@@ -17,6 +17,7 @@
using NLog; using NLog;
using Ragon.Protocol; using Ragon.Protocol;
using Ragon.Server.Entity; using Ragon.Server.Entity;
using Ragon.Server.Lobby;
using Ragon.Server.Room; using Ragon.Server.Room;
namespace Ragon.Server.Handler; namespace Ragon.Server.Handler;
@@ -14,6 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
using Ragon.Server.Entity;
using Ragon.Server.Room;
namespace Ragon.Server.Plugin; namespace Ragon.Server.Plugin;
public interface IRoomPlugin public interface IRoomPlugin
@@ -2,11 +2,11 @@ using System.Net;
using System.Net.Http.Json; using System.Net.Http.Json;
using Newtonsoft.Json; using Newtonsoft.Json;
using Ragon.Protocol; using Ragon.Protocol;
using Ragon.Server.Handler;
using Ragon.Server.Lobby; using Ragon.Server.Lobby;
using Ragon.Server.Plugin.Web;
using Ragon.Server.Room; using Ragon.Server.Room;
namespace Ragon.Server.Plugin; namespace Ragon.Server.Plugin.Web;
public class WebHookPlugin public class WebHookPlugin
{ {
+2
View File
@@ -14,6 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
using Ragon.Server.Entity;
namespace Ragon.Server; namespace Ragon.Server;
public class RagonEntityCache public class RagonEntityCache
+4
View File
@@ -17,7 +17,11 @@
using System.Diagnostics; using System.Diagnostics;
using NLog; using NLog;
using Ragon.Protocol; using Ragon.Protocol;
using Ragon.Server.Handler;
using Ragon.Server.IO;
using Ragon.Server.Lobby;
using Ragon.Server.Plugin; using Ragon.Server.Plugin;
using Ragon.Server.Plugin.Web;
using Ragon.Server.Time; using Ragon.Server.Time;
namespace Ragon.Server; namespace Ragon.Server;
@@ -44,7 +44,7 @@ public struct Configuration
public Dictionary<string, string> WebHooks; public Dictionary<string, string> WebHooks;
private static readonly Logger Logger = LogManager.GetCurrentClassLogger(); private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
private static readonly string ServerVersion = "1.1.3-rc"; private static readonly string ServerVersion = "1.2.0-rc";
private static Dictionary<string, ServerType> _serverTypes = new Dictionary<string, ServerType>() private static Dictionary<string, ServerType> _serverTypes = new Dictionary<string, ServerType>()
{ {
{"enet", Server.ServerType.ENET}, {"enet", Server.ServerType.ENET},
+1
View File
@@ -15,6 +15,7 @@
*/ */
using Ragon.Protocol; using Ragon.Protocol;
using Ragon.Server.Entity;
using Ragon.Server.Plugin; using Ragon.Server.Plugin;
using Ragon.Server.Time; using Ragon.Server.Time;
@@ -14,6 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
using Ragon.Server.Entity;
using Ragon.Server.IO; using Ragon.Server.IO;
namespace Ragon.Server.Room; namespace Ragon.Server.Room;