]> git.deb.at Git - rhonda/impostor.git/commitdiff
Fix namespaces
authorAeonLucid <aeonlucid@gmail.com>
Sun, 18 Oct 2020 19:39:52 +0000 (21:39 +0200)
committerAeonLucid <aeonlucid@gmail.com>
Sun, 18 Oct 2020 19:39:52 +0000 (21:39 +0200)
src/Impostor.Patcher/Impostor.Patcher.Cli/Program.cs
src/Impostor.Patcher/Impostor.Patcher.Shared/AmongUsModifier.cs
src/Impostor.Patcher/Impostor.Patcher.Shared/Configuration.cs
src/Impostor.Patcher/Impostor.Patcher.Shared/Events/ErrorEventArgs.cs
src/Impostor.Patcher/Impostor.Patcher.Shared/Events/SavedEventArgs.cs
src/Impostor.Patcher/Impostor.Patcher.WinForms/Forms/FrmMain.Designer.cs
src/Impostor.Patcher/Impostor.Patcher.WinForms/Forms/FrmMain.cs
src/Impostor.Patcher/Impostor.Patcher.WinForms/Program.cs
src/Impostor.Patcher/Impostor.Patcher.WinForms/Properties/Resources.Designer.cs
src/Impostor.Patcher/Impostor.Patcher.WinForms/Properties/Settings.Designer.cs

index f07e1ab48368cfcf8340ca59e96d4e67075690ee..cdcc12cd877c04af2e8b85d75b2114653bdf2138 100644 (file)
@@ -1,32 +1,32 @@
 using System;
 using System.Threading.Tasks;
-using Impostor.Client.Shared;
-using Impostor.Client.Shared.Events;
+using Impostor.Patcher.Shared;
+using Impostor.Patcher.Shared.Events;
 
-namespace Impostor.Client.Cli
+namespace Impostor.Patcher.Cli
 {
     internal static class Program
     {
-        private static readonly AmongUsModifier _modifier = new AmongUsModifier();
+        private static readonly AmongUsModifier Modifier = new AmongUsModifier();
 
         /// <param name="address">IP Address of the server, will prompt if not specified</param>
         /// <param name="name">Name for server region</param>
         private static Task Main(string address = null, string name = AmongUsModifier.DefaultRegionName)
         {
-            _modifier.RegionName = name;
-            _modifier.Error += ModifierOnError;
-            _modifier.Saved += ModifierOnSaved;
+            Modifier.RegionName = name;
+            Modifier.Error += ModifierOnError;
+            Modifier.Saved += ModifierOnSaved;
 
             Console.WriteLine("Welcome to Impostor");
 
-            if (_modifier.TryLoadRegionInfo(out var regionInfo))
+            if (Modifier.TryLoadRegionInfo(out var regionInfo))
             {
                 Console.WriteLine($"Currently selected region: {regionInfo.Name} ({regionInfo.Ping}, {regionInfo.Servers.Count} server(s))");
             }
 
             if (address != null)
             {
-                return _modifier.SaveIpAsync(address);
+                return Modifier.SaveIpAsync(address);
             }
 
             return PromptAsync();
@@ -60,7 +60,7 @@ namespace Impostor.Client.Cli
             {
                 Console.Write("> ");
 
-                if (await _modifier.SaveIpAsync(Console.ReadLine()))
+                if (await Modifier.SaveIpAsync(Console.ReadLine()))
                 {
                     return;
                 }
index c94009b342592d8ee6073d975918a5113f4b3db4..130a6a462fe8b9e9c8d29f604c49898ef4f7a2b0 100644 (file)
@@ -8,11 +8,11 @@ using System.Runtime.InteropServices;
 using System.Threading.Tasks;
 using Gameloop.Vdf;
 using Gameloop.Vdf.Linq;
-using Impostor.Client.Shared.Events;
+using Impostor.Patcher.Shared.Events;
 using Impostor.Shared.Innersloth;
-using ErrorEventArgs = Impostor.Client.Shared.Events.ErrorEventArgs;
+using ErrorEventArgs = Impostor.Patcher.Shared.Events.ErrorEventArgs;
 
-namespace Impostor.Client.Shared
+namespace Impostor.Patcher.Shared
 {
     public class AmongUsModifier
     {
index f19f741a1607b8e8467472f5eebf53e38927d3eb..b256156cd2e63ef52206ed9ccee1767d63960a6b 100644 (file)
@@ -2,7 +2,7 @@
 using System.Collections.Generic;
 using System.IO;
 
-namespace Impostor.Client.Shared
+namespace Impostor.Patcher.Shared
 {
     public class Configuration
     {
index 128570de7d7fe4831489a22ab76ec4caf089701e..7211d5d35b17bc28a832bedfbf1cfe5d3cbf93be 100644 (file)
@@ -1,6 +1,6 @@
 using System;
 
-namespace Impostor.Client.Shared.Events
+namespace Impostor.Patcher.Shared.Events
 {
     public class ErrorEventArgs : EventArgs
     {
index 01fae136dcbdd737608d341a779002762942a1ea..c91d071971ba9b85dc3079344c92d953a6ef1338 100644 (file)
@@ -1,6 +1,6 @@
 using System;
 
-namespace Impostor.Client.Shared.Events
+namespace Impostor.Patcher.Shared.Events
 {
     public class SavedEventArgs : EventArgs
     {
index 70e3837b0066f841df469dc82d870cd306b30e74..0f6320b4f865fcca469a29192bdfff3e9dfb0003 100644 (file)
@@ -1,4 +1,4 @@
-namespace Impostor.Client.WinForms.Forms
+namespace Impostor.Patcher.WinForms.Forms
 {
     partial class FrmMain
     {
index 71c3a7daa2bb0ac163314bc4f317fb68fa48b9f6..5c06669e0c3a44c323be46c281370d07e6158e23 100644 (file)
@@ -1,10 +1,10 @@
 using System;
 using System.Diagnostics;
 using System.Windows.Forms;
-using Impostor.Client.Shared;
-using Impostor.Client.Shared.Events;
+using Impostor.Patcher.Shared;
+using Impostor.Patcher.Shared.Events;
 
-namespace Impostor.Client.WinForms.Forms
+namespace Impostor.Patcher.WinForms.Forms
 {
     public partial class FrmMain : Form
     {
index 6fc458ab032fea4f8de854a0d535ded35ef8ca28..7ca903533f6e37bcd969e32ff21fa2684ab52387 100644 (file)
@@ -1,8 +1,8 @@
 using System;
 using System.Windows.Forms;
-using Impostor.Client.WinForms.Forms;
+using Impostor.Patcher.WinForms.Forms;
 
-namespace Impostor.Client.WinForms
+namespace Impostor.Patcher.WinForms
 {
     internal static class Program
     {
index ef33343a9800d601b23bfbd6235512e295c8ea3f..bb5c4cf5e387928f6103d38dbabf94ce218346d9 100644 (file)
@@ -8,7 +8,7 @@
 // </auto-generated>
 //------------------------------------------------------------------------------
 
-namespace Impostor.Client.WinForms.Properties
+namespace Impostor.Patcher.WinForms.Properties
 {
     /// <summary>
     ///   A strongly-typed resource class, for looking up localized strings, etc.
index 84df4f733555ef42f95ccc01b40258f25f2ef08b..42356db6416b59bf30c5a28061169aa344e32e8a 100644 (file)
@@ -8,7 +8,7 @@
 // </auto-generated>
 //------------------------------------------------------------------------------
 
-namespace Impostor.Client.Properties
+namespace Impostor.Patcher.Properties
 {
     [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
     [global::System.CodeDom.Compiler.GeneratedCodeAttribute(