mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Codestyle
This commit is contained in:
parent
c5e3750172
commit
253c2f069b
@ -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;
|
||||
}
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user