Codestyle

This commit is contained in:
Robert committed 2020-11-30 21:27:36 +01:00
1 parent c5e3750172
commit 253c2f069b
2 files changed
+11 -7

No files matched your search

@@ -9,11 +9,6 @@ namespace Artemis.Core.Services
/// </summary>
public interface IModuleService : IArtemisService
{
/// <summary>
/// Occurs when the priorty of a module is updated.
/// </summary>
event EventHandler ModulePriorityUpdated;
/// <summary>
/// Gets the current active module override. If set, all other modules are deactivated and only the
/// <see cref="ActiveModuleOverride" /> is active.
@@ -38,5 +33,10 @@ namespace Artemis.Core.Services
/// <param name="category">The new priority category of the module</param>
/// <param name="priority">The new priority of the module</param>
void UpdateModulePriority(Module module, ModulePriorityCategory category, int priority);
/// <summary>
/// Occurs when the priority of a module is updated.
/// </summary>
event EventHandler? ModulePriorityUpdated;
}
}
+6 -2
View File
@@ -149,8 +149,6 @@ namespace Artemis.Core.Services
UpdateModulePriority(module, category, priority);
}
public event EventHandler ModulePriorityUpdated;
public Module? ActiveModuleOverride { get; private set; }
public async Task SetActiveModuleOverride(Module? overrideModule)
@@ -266,5 +264,11 @@ namespace Artemis.Core.Services
ModulePriorityUpdated?.Invoke(this, EventArgs.Empty);
}
#region Events
public event EventHandler? ModulePriorityUpdated;
#endregion
}
}