Skip to content

Commit 9946fea

Browse files
committed
Refactoring: normalizing the namespaces.
1 parent c38e0f6 commit 9946fea

22 files changed

+28
-28
lines changed

Source/ModuleManagerWatchDog/ErrorMessages.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You should have received a copy of the SKL Standard License 1.0
1414
<https://ksp.lisias.net/SKL-1_0.txt>.
1515
1616
*/
17-
namespace ModuleManagerWatchDog
17+
namespace WatchDog.ModuleManager
1818
{
1919
internal static class ErrorMessage
2020
{

Source/ModuleManagerWatchDog/GUI/RebootTheGameAlertBox.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You should have received a copy of the SKL Standard License 1.0
1616
*/
1717
using UnityEngine;
1818

19-
namespace ModuleManagerWatchDog.GUI.Dialogs
19+
namespace WatchDog.ModuleManager.GUI.Dialogs
2020
{
2121
internal static class ShowRebootTheGameAlertBox
2222
{

Source/ModuleManagerWatchDog/GUI/ShowStopperAlertBox.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You should have received a copy of the SKL Standard License 1.0
1616
*/
1717
using UnityEngine;
1818

19-
namespace ModuleManagerWatchDog.GUI.Dialogs
19+
namespace WatchDog.ModuleManager.GUI.Dialogs
2020
{
2121
internal static class ShowStopperAlertBox
2222
{

Source/ModuleManagerWatchDog/GUI/WarningAlertbox.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ You should have received a copy of the SKL Standard License 1.0
2121

2222
using UnityEngine;
2323

24-
namespace ModuleManagerWatchDog.GUI.Dialogs
24+
namespace WatchDog.ModuleManager.GUI.Dialogs
2525
{
2626
internal class WarningAlertBox : AbstractDialog
2727
{

Source/ModuleManagerWatchDog/Globals.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ You should have received a copy of the SKL Standard License 1.0
1717
using System;
1818
using SIO = System.IO;
1919

20-
namespace ModuleManagerWatchDog
20+
namespace WatchDog.ModuleManager
2121
{
2222
public class Globals
2323
{

Source/ModuleManagerWatchDog/InstallChecker.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ You should have received a copy of the SKL Standard License 1.0
2020
using System.Reflection;
2121
using SIO = System.IO;
2222

23-
namespace ModuleManagerWatchDog
23+
namespace WatchDog.ModuleManager
2424
{
2525
internal class InstallChecker
2626
{
@@ -79,7 +79,7 @@ private void Handle(string msg)
7979

8080
private string CheckMyself()
8181
{
82-
IEnumerable<AssemblyLoader.LoadedAssembly> loaded = SanityLib.FetchLoadedAssembliesByName(this.GetType().Namespace);
82+
IEnumerable<AssemblyLoader.LoadedAssembly> loaded = SanityLib.FetchLoadedAssembliesByName(this.GetType().Assembly.GetName().Name);
8383

8484
#if DEBUG
8585
Log.dbg("CheckMyself");

Source/ModuleManagerWatchDog/ModuleManagerWatchDog.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
66
<ProjectGuid>{C4A875CC-E958-429F-944B-D0702EA76A89}</ProjectGuid>
77
<OutputType>Library</OutputType>
8-
<RootNamespace>ModuleManagerWatchDog</RootNamespace>
8+
<RootNamespace>WatchDog.ModuleManager</RootNamespace>
99
<AssemblyName>ModuleManagerWatchDog</AssemblyName>
1010
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
1111
<BaseIntermediateOutputPath>..\..\obj\ModuleManagerWatchDog</BaseIntermediateOutputPath>

Source/ModuleManagerWatchDog/Startup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ You should have received a copy of the SKL Standard License 1.0
1616
*/
1717
using UnityEngine;
1818

19-
namespace ModuleManagerWatchDog
19+
namespace WatchDog.ModuleManager
2020
{
2121
[KSPAddon(KSPAddon.Startup.Instantly, true)]
2222
internal class Startup : MonoBehaviour
2323
{
2424
private void Start()
2525
{
26-
Log.force("Version {0}", Version.Text);
26+
Log.force("Version {0}", ModuleManagerWatchDog.Version.Text);
2727
{
2828
InstallChecker ic = new InstallChecker();
2929
ic.Execute();

Source/ModuleManagerWatchDog/Util/Log.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You should have received a copy of the SKL Standard License 1.0
1616
*/
1717
using System.Diagnostics;
1818

19-
namespace ModuleManagerWatchDog
19+
namespace WatchDog.ModuleManager
2020
{
2121
public static class Log
2222
{

Source/ModuleManagerWatchDog/Util/SanityLib.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ You should have received a copy of the SKL Standard License 1.0
2020
using System.Collections.Generic;
2121
using System.Linq;
2222

23-
namespace ModuleManagerWatchDog
23+
namespace WatchDog.ModuleManager
2424
{
2525
public static class SanityLib
2626
{

0 commit comments

Comments
 (0)