mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 07:04:57 +01:00
Massive sanity reorganization of project structure
Overall: - Removed all 'TG' prefixes on classes and enums Service: - TGStationServer => ServerInstance - TGServerService => Service - Moved all ServerInstance partial classes to a subfolder - Moved ChatProvider classes, delegate, and interface to a namespace - Moved EventID and ChatMessageType to their own .cs files - Moved SanitizeTopicString to Program - ServerService.cs => Service.cs - Fixed ProjectInstaller being in it's own namespace instead of TGServerService Interface: - Moved ExitCode enum to Command class - Moved all components to a namespace - Moved all component enums to Enumerations.cs - DDInteropCallHolder => DreamDaemonBridge - Move PullRequestInfo and DreamDaemonBridge to their own .cs files - Changes the type of ChannelFactory cache from Dictionary<Type, ChannelFactory> to IDictionary<Type, ChannelFactory>
This commit is contained in:
@@ -6,7 +6,7 @@ namespace TGServerService
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
static void Main() => new TGServerService(); //wondows
|
||||
static void Main() => new Service(); //wondows
|
||||
|
||||
//Everything in this file is just generic helpers
|
||||
|
||||
@@ -101,5 +101,10 @@ namespace TGServerService
|
||||
CopyDirectory(subdir.FullName, temppath, ignore);
|
||||
}
|
||||
}
|
||||
|
||||
public static string SanitizeTopicString(string input)
|
||||
{
|
||||
return input.Replace("%", "%25").Replace("=", "%3d").Replace(";", "%3b").Replace("&", "%26").Replace("+", "%2b");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user