--- /dev/null
+namespace Impostor.Server.Config
+{
+ public class DebugConfig
+ {
+ public const string Section = "Debug";
+
+ public bool GameRecorderEnabled { get; set; }
+ public string GameRecorderPath { get; set; }
+ }
+}
\ No newline at end of file
--- /dev/null
+namespace Impostor.Server.Config
+{
+ public static class DisconnectMessages
+ {
+ public const string Error = "There was an internal server error. " +
+ "Check the server console for more information. " +
+ "Please report the issue on the AmongUsServer GitHub if it keeps happening.";
+
+ public const string Destroyed = "The game you tried to join is being destroyed. " +
+ "Please create a new game.";
+
+ public const string NotImplemented = "Game listing has not been implemented in Impostor yet for servers " +
+ "running in server redirection mode.";
+
+ public const string UsernameLength = "Your username is too long, please make it shorter.";
+ }
+}
\ No newline at end of file
--- /dev/null
+namespace Impostor.Server.Config
+{
+ internal class ServerConfig
+ {
+ public const string Section = "Server";
+
+ public string PublicIp { get; set; } = "127.0.0.1";
+
+ public ushort PublicPort { get; set; } = 22023;
+
+ public string ListenIp { get; set; } = "127.0.0.1";
+
+ public ushort ListenPort { get; set; } = 22023;
+ }
+}
\ No newline at end of file
--- /dev/null
+using System.Collections.Generic;
+
+namespace Impostor.Server.Config
+{
+ public class ServerRedirectorConfig
+ {
+ public const string Section = "ServerRedirector";
+
+ public bool Enabled { get; set; }
+
+ public bool Master { get; set; }
+
+ public NodeLocator Locator { get; set; }
+
+ public List<ServerRedirectorNode> Nodes { get; set; }
+
+ public class NodeLocator
+ {
+ public string Redis { get; set; }
+
+ public string UdpMasterEndpoint { get; set; }
+ }
+ }
+}
\ No newline at end of file
--- /dev/null
+namespace Impostor.Server.Config
+{
+ public class ServerRedirectorNode
+ {
+ public string Ip { get; set; }
+
+ public ushort Port { get; set; }
+ }
+}
\ No newline at end of file
+++ /dev/null
-namespace Impostor.Server.Data
-{
- public class DebugConfig
- {
- public const string Section = "Debug";
-
- public bool GameRecorderEnabled { get; set; }
- public string GameRecorderPath { get; set; }
- }
-}
\ No newline at end of file
+++ /dev/null
-namespace Impostor.Server.Data
-{
- public static class DisconnectMessages
- {
- public const string Error = "There was an internal server error. " +
- "Check the server console for more information. " +
- "Please report the issue on the AmongUsServer GitHub if it keeps happening.";
-
- public const string Destroyed = "The game you tried to join is being destroyed. " +
- "Please create a new game.";
-
- public const string NotImplemented = "Game listing has not been implemented in Impostor yet for servers " +
- "running in server redirection mode.";
-
- public const string UsernameLength = "Your username is too long, please make it shorter.";
- }
-}
\ No newline at end of file
+++ /dev/null
-namespace Impostor.Server.Data
-{
- internal class ServerConfig
- {
- public const string Section = "Server";
-
- public string PublicIp { get; set; } = "127.0.0.1";
-
- public ushort PublicPort { get; set; } = 22023;
-
- public string ListenIp { get; set; } = "127.0.0.1";
-
- public ushort ListenPort { get; set; } = 22023;
- }
-}
\ No newline at end of file
+++ /dev/null
-using System.Collections.Generic;
-
-namespace Impostor.Server.Data
-{
- public class ServerRedirectorConfig
- {
- public const string Section = "ServerRedirector";
-
- public bool Enabled { get; set; }
-
- public bool Master { get; set; }
-
- public NodeLocator Locator { get; set; }
-
- public List<ServerRedirectorNode> Nodes { get; set; }
-
- public class NodeLocator
- {
- public string Redis { get; set; }
-
- public string UdpMasterEndpoint { get; set; }
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-namespace Impostor.Server.Data
-{
- public class ServerRedirectorNode
- {
- public string Ip { get; set; }
-
- public ushort Port { get; set; }
- }
-}
\ No newline at end of file
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
</Content>
- <Content Include="config.full.json">
+ <Content Include="config-full.json">
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
using Impostor.Api.Net.Messages.C2S;
using Impostor.Api.Net.Messages.S2C;
using Impostor.Hazel;
-using Impostor.Server.Data;
+using Impostor.Server.Config;
using Impostor.Server.Net.Hazel;
using Impostor.Server.Net.Manager;
using Microsoft.Extensions.Logging;
using Impostor.Api.Net.Messages;
using Impostor.Api.Net.Messages.S2C;
using Impostor.Hazel;
-using Impostor.Server.Data;
+using Impostor.Server.Config;
using Impostor.Server.Net.Factories;
using Impostor.Server.Net.Hazel;
using Microsoft.Extensions.Logging;
using Impostor.Api.Games.Managers;
using Impostor.Api.Innersloth;
using Impostor.Api.Innersloth.Data;
-using Impostor.Server.Data;
+using Impostor.Server.Config;
using Impostor.Server.Extensions;
using Impostor.Server.Net.Redirector;
using Impostor.Server.Net.State;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
-using Impostor.Server.Data;
+using Impostor.Server.Config;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Impostor.Api.Net.Messages.C2S;
using Impostor.Api.Net.Messages.S2C;
using Impostor.Hazel;
-using Impostor.Server.Data;
+using Impostor.Server.Config;
using Impostor.Server.Net.Hazel;
using Impostor.Server.Net.Manager;
using Serilog;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
-using Impostor.Server.Data;
+using Impostor.Server.Config;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
-using Impostor.Server.Data;
+using Impostor.Server.Config;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using System.Collections.Generic;
using System.Net;
-using Impostor.Server.Data;
+using Impostor.Server.Config;
using Microsoft.Extensions.Options;
namespace Impostor.Server.Net.Redirector
using Impostor.Api.Games;
using Impostor.Api.Games.Managers;
using Impostor.Api.Net.Manager;
-using Impostor.Server.Data;
+using Impostor.Server.Config;
using Impostor.Server.Events;
using Impostor.Server.Net;
using Impostor.Server.Net.Factories;
using System.Threading.Tasks;
using Impostor.Api.Games;
using Impostor.Api.Net.Messages;
-using Impostor.Server.Data;
+using Impostor.Server.Config;
using Impostor.Server.Net;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.ObjectPool;