mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-19 15:51:42 +00:00
Move config files to API
This makes it possible to access these from a plugin
This commit is contained in:
1 parent
2de08da14d
commit
dc530406c6
20 files changed
+22
-23
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
||||
namespace Impostor.Server.Config
|
||||
namespace Impostor.Api.Config
|
||||
{
|
||||
public class AntiCheatConfig
|
||||
{
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
namespace Impostor.Server.Config
|
||||
namespace Impostor.Api.Config
|
||||
{
|
||||
public class CompatibilityConfig
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Impostor.Server.Config
|
||||
namespace Impostor.Api.Config
|
||||
{
|
||||
public class DebugConfig
|
||||
{
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
namespace Impostor.Server.Config
|
||||
namespace Impostor.Api.Config
|
||||
{
|
||||
public static class DisconnectMessages
|
||||
{
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
using Impostor.Server.Utils;
|
||||
using Impostor.Api.Utils;
|
||||
|
||||
namespace Impostor.Server.Config
|
||||
namespace Impostor.Api.Config
|
||||
{
|
||||
internal class ServerConfig
|
||||
public class ServerConfig
|
||||
{
|
||||
public const string Section = "Server";
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Impostor.Server.Config
|
||||
namespace Impostor.Api.Config
|
||||
{
|
||||
public class ServerRedirectorConfig
|
||||
{
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Impostor.Server.Config
|
||||
namespace Impostor.Api.Config
|
||||
{
|
||||
public class ServerRedirectorNode
|
||||
{
|
||||
@@ -1,9 +1,8 @@
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using Impostor.Api;
|
||||
|
||||
namespace Impostor.Server.Utils
|
||||
namespace Impostor.Api.Utils
|
||||
{
|
||||
internal static class IpUtils
|
||||
{
|
||||
@@ -2,6 +2,7 @@ using System;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Api;
|
||||
using Impostor.Api.Config;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Innersloth;
|
||||
using Impostor.Api.Net;
|
||||
@@ -10,7 +11,6 @@ using Impostor.Api.Net.Messages;
|
||||
using Impostor.Api.Net.Messages.C2S;
|
||||
using Impostor.Api.Net.Messages.S2C;
|
||||
using Impostor.Hazel;
|
||||
using Impostor.Server.Config;
|
||||
using Impostor.Server.Net.Manager;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
@@ -4,12 +4,12 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Api.Config;
|
||||
using Impostor.Api.Events.Managers;
|
||||
using Impostor.Api.Innersloth;
|
||||
using Impostor.Api.Net;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Hazel;
|
||||
using Impostor.Server.Config;
|
||||
using Impostor.Server.Events.Client;
|
||||
using Impostor.Server.Net.Factories;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
@@ -5,12 +5,12 @@ using System.Linq;
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Api;
|
||||
using Impostor.Api.Config;
|
||||
using Impostor.Api.Events.Managers;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Games.Managers;
|
||||
using Impostor.Api.Innersloth;
|
||||
using Impostor.Api.Net;
|
||||
using Impostor.Server.Config;
|
||||
using Impostor.Server.Events;
|
||||
using Impostor.Server.Net.Redirector;
|
||||
using Impostor.Server.Net.State;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Net;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Server.Config;
|
||||
using Impostor.Api.Config;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Api.Config;
|
||||
using Impostor.Api.Innersloth;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Api.Net.Messages.C2S;
|
||||
using Impostor.Api.Net.Messages.S2C;
|
||||
using Impostor.Hazel;
|
||||
using Impostor.Server.Config;
|
||||
using Impostor.Server.Net.Hazel;
|
||||
using Impostor.Server.Net.Manager;
|
||||
using Serilog;
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Server.Config;
|
||||
using Impostor.Api.Config;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Net.Sockets;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Server.Config;
|
||||
using Impostor.Api.Config;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Net;
|
||||
using Impostor.Server.Config;
|
||||
using Impostor.Api.Config;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
namespace Impostor.Server.Net.Redirector
|
||||
|
||||
@@ -6,13 +6,13 @@ using System.Linq;
|
||||
using System.Net;
|
||||
using System.Numerics;
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Api.Config;
|
||||
using Impostor.Api.Events.Managers;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Innersloth;
|
||||
using Impostor.Api.Net;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Api.Net.Messages.S2C;
|
||||
using Impostor.Server.Config;
|
||||
using Impostor.Server.Events;
|
||||
using Impostor.Server.Net.Manager;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
@@ -3,6 +3,7 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Runtime.Loader;
|
||||
using Impostor.Api.Config;
|
||||
using Impostor.Api.Events.Managers;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Games.Managers;
|
||||
@@ -11,7 +12,6 @@ using Impostor.Api.Net.Manager;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Api.Utils;
|
||||
using Impostor.Hazel.Extensions;
|
||||
using Impostor.Server.Config;
|
||||
using Impostor.Server.Events;
|
||||
using Impostor.Server.Net;
|
||||
using Impostor.Server.Net.Custom;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Api.Config;
|
||||
using Impostor.Api.Innersloth;
|
||||
using Impostor.Api.Net.Custom;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Config;
|
||||
using Impostor.Server.Net;
|
||||
using Impostor.Server.Net.Hazel;
|
||||
using Impostor.Server.Net.Manager;
|
||||
|
||||
@@ -4,9 +4,9 @@ using System.Net;
|
||||
using System.Threading;
|
||||
using System.Threading.Channels;
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Api.Config;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Config;
|
||||
using Impostor.Server.Net;
|
||||
using Impostor.Server.Utils;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
||||
Reference in new issue
Block a user