diff --git a/PMF/src/Config.cs b/PMF/src/Config.cs index 9d2dca7..e7d220e 100644 --- a/PMF/src/Config.cs +++ b/PMF/src/Config.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; - -namespace PMF +namespace PMF { public static class Config { diff --git a/PMF/src/Exceptions/NotFoundException.cs b/PMF/src/Exceptions/NotFoundException.cs index c9bbb0d..445c8f3 100644 --- a/PMF/src/Exceptions/NotFoundException.cs +++ b/PMF/src/Exceptions/NotFoundException.cs @@ -1,6 +1,4 @@ using System; -using System.Collections.Generic; -using System.Text; namespace PMF.Exceptions { diff --git a/PMF/src/Extensions.cs b/PMF/src/Extensions.cs index 506e2f6..713f3bf 100644 --- a/PMF/src/Extensions.cs +++ b/PMF/src/Extensions.cs @@ -1,7 +1,6 @@ using PMF.Exceptions; using System; using System.Collections.Generic; -using System.Text; namespace PMF { diff --git a/PMF/src/Managers/LocalPackageManager.cs b/PMF/src/Managers/LocalPackageManager.cs index 83d6407..4e84aec 100644 --- a/PMF/src/Managers/LocalPackageManager.cs +++ b/PMF/src/Managers/LocalPackageManager.cs @@ -1,10 +1,8 @@ using Newtonsoft.Json; -using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; -using System.Text; namespace PMF.Managers { diff --git a/PMF/src/Managers/PackageManager.cs b/PMF/src/Managers/PackageManager.cs index 0c9b266..7810e80 100644 --- a/PMF/src/Managers/PackageManager.cs +++ b/PMF/src/Managers/PackageManager.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.IO.Compression; -using System.Text; namespace PMF.Managers { diff --git a/PMF/src/Managers/PackageState.cs b/PMF/src/Managers/PackageState.cs index 0d3a6da..eee870a 100644 --- a/PMF/src/Managers/PackageState.cs +++ b/PMF/src/Managers/PackageState.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace PMF +namespace PMF { public enum PackageState { diff --git a/PMF/src/Managers/RemotePackageManager.cs b/PMF/src/Managers/RemotePackageManager.cs index f4cb470..308283e 100644 --- a/PMF/src/Managers/RemotePackageManager.cs +++ b/PMF/src/Managers/RemotePackageManager.cs @@ -1,10 +1,7 @@ using Newtonsoft.Json; -using PMF.Exceptions; using System; -using System.Collections.Generic; using System.IO; using System.Net; -using System.Text; namespace PMF.Managers { diff --git a/PMF/src/PMF.cs b/PMF/src/PMF.cs index 0608b2a..3e3d300 100644 --- a/PMF/src/PMF.cs +++ b/PMF/src/PMF.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; +using PMF.Managers; namespace PMF { @@ -10,6 +8,16 @@ namespace PMF { public static event OnPackageMessage OnPackageMessage; + public static void Start() + { + PackageManager.Start(); + } + + public static void Stop() + { + PackageManager.Stop(); + } + internal static void InvokePackageMessageEvent(string message) { OnPackageMessage?.Invoke(message); diff --git a/PMF/src/Package/Asset.cs b/PMF/src/Package/Asset.cs index 8f5ccea..e5f612b 100644 --- a/PMF/src/Package/Asset.cs +++ b/PMF/src/Package/Asset.cs @@ -1,9 +1,7 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; -using System.Text; namespace PMF { diff --git a/PMF/src/Package/Dependency.cs b/PMF/src/Package/Dependency.cs index 2585510..a5bc635 100644 --- a/PMF/src/Package/Dependency.cs +++ b/PMF/src/Package/Dependency.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace PMF +namespace PMF { /// /// Files that an asset depends on diff --git a/PMF/src/Package/Package.cs b/PMF/src/Package/Package.cs index d1be4f7..3fb18a7 100644 --- a/PMF/src/Package/Package.cs +++ b/PMF/src/Package/Package.cs @@ -1,9 +1,7 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; -using System.Text; namespace PMF { diff --git a/PMF/src/Package/PackageType.cs b/PMF/src/Package/PackageType.cs index b9c105a..bbd8323 100644 --- a/PMF/src/Package/PackageType.cs +++ b/PMF/src/Package/PackageType.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace PMF +namespace PMF { public enum PackageType {