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();
{
Console.Write("> ");
- if (await _modifier.SaveIpAsync(Console.ReadLine()))
+ if (await Modifier.SaveIpAsync(Console.ReadLine()))
{
return;
}
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
{
using System.Collections.Generic;
using System.IO;
-namespace Impostor.Client.Shared
+namespace Impostor.Patcher.Shared
{
public class Configuration
{
using System;
-namespace Impostor.Client.Shared.Events
+namespace Impostor.Patcher.Shared.Events
{
public class ErrorEventArgs : EventArgs
{
using System;
-namespace Impostor.Client.Shared.Events
+namespace Impostor.Patcher.Shared.Events
{
public class SavedEventArgs : EventArgs
{
-namespace Impostor.Client.WinForms.Forms
+namespace Impostor.Patcher.WinForms.Forms
{
partial class FrmMain
{
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
{
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
{
// </auto-generated>
//------------------------------------------------------------------------------
-namespace Impostor.Client.WinForms.Properties
+namespace Impostor.Patcher.WinForms.Properties
{
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
// </auto-generated>
//------------------------------------------------------------------------------
-namespace Impostor.Client.Properties
+namespace Impostor.Patcher.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute(