mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Codestyle
This commit is contained in:
1 parent
c5e3750172
commit
253c2f069b
2 files changed
+11
-7
No files matched your search
@@ -9,11 +9,6 @@ namespace Artemis.Core.Services
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public interface IModuleService : IArtemisService
|
public interface IModuleService : IArtemisService
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Occurs when the priorty of a module is updated.
|
|
||||||
/// </summary>
|
|
||||||
event EventHandler ModulePriorityUpdated;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the current active module override. If set, all other modules are deactivated and only the
|
/// Gets the current active module override. If set, all other modules are deactivated and only the
|
||||||
/// <see cref="ActiveModuleOverride" /> is active.
|
/// <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="category">The new priority category of the module</param>
|
||||||
/// <param name="priority">The new priority of the module</param>
|
/// <param name="priority">The new priority of the module</param>
|
||||||
void UpdateModulePriority(Module module, ModulePriorityCategory category, int priority);
|
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);
|
UpdateModulePriority(module, category, priority);
|
||||||
}
|
}
|
||||||
|
|
||||||
public event EventHandler ModulePriorityUpdated;
|
|
||||||
|
|
||||||
public Module? ActiveModuleOverride { get; private set; }
|
public Module? ActiveModuleOverride { get; private set; }
|
||||||
|
|
||||||
public async Task SetActiveModuleOverride(Module? overrideModule)
|
public async Task SetActiveModuleOverride(Module? overrideModule)
|
||||||
@@ -266,5 +264,11 @@ namespace Artemis.Core.Services
|
|||||||
|
|
||||||
ModulePriorityUpdated?.Invoke(this, EventArgs.Empty);
|
ModulePriorityUpdated?.Invoke(this, EventArgs.Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region Events
|
||||||
|
|
||||||
|
public event EventHandler? ModulePriorityUpdated;
|
||||||
|
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user