Interface IModuleService
A service providing module activation functionality
Namespace: Artemis.Core.Services
Assembly: Artemis.Core.dll
Syntax
public interface IModuleService
Methods
SetActivationOverride(Module?)
Overrides activation on the provided module and restores regular activation to any remaining modules
Declaration
void SetActivationOverride(Module? module)
Parameters
Type | Name | Description |
---|---|---|
Module | module |
UpdateActiveModules(double)
Updates all currently active modules
Declaration
void UpdateActiveModules(double deltaTime)
Parameters
Type | Name | Description |
---|---|---|
double | deltaTime |
UpdateModuleActivation()
Evaluates every enabled module's activation requirements and activates/deactivates modules accordingly
Declaration
void UpdateModuleActivation()
Events
ModuleActivated
Occurs whenever a module is activated
Declaration
event EventHandler<ModuleEventArgs> ModuleActivated
Event Type
Type | Description |
---|---|
EventHandler<ModuleEventArgs> |
ModuleDeactivated
Occurs whenever a module is deactivated
Declaration
event EventHandler<ModuleEventArgs> ModuleDeactivated
Event Type
Type | Description |
---|---|
EventHandler<ModuleEventArgs> |