Class SystemManager
Manages systems within the application.
public class SystemManager : TypeMapManager<ISystem, SystemManager>, IManager<ISystem, SystemManager>, IManager, IPluginComponent, IManageable<PluginComponentsManager>, IManageable
- Inheritance
-
SystemManager
- Implements
- Inherited Members
- Extension Methods
Fields
TickManageables
protected readonly List<ITickSystem> TickManageables
Field Value
Properties
FrameInterval
public int FrameInterval { get; set; }
Property Value
Log
protected override Logger Log { get; }
Property Value
TimeScale
public float TimeScale { get; set; }
Property Value
UseBuiltInTickRunner
Indicates whether to use the built-in tick runner for updates.
public bool UseBuiltInTickRunner { get; set; }
Property Value
Methods
AddSystem<T>(IPlugin, bool)
public T? AddSystem<T>(IPlugin plugin, bool failIfExists = true) where T : ISystem
Parameters
Returns
- T
Type Parameters
T
AddSystem<T>(IPlugin, T, bool)
public void AddSystem<T>(IPlugin plugin, T system, bool failIfExists = true) where T : ISystem
Parameters
Type Parameters
T
GetSystem<T>(bool)
public T? GetSystem<T>(bool required = true) where T : ISystem
Parameters
required
bool
Returns
- T
Type Parameters
T
IsEnabled<TX>(TX?)
Is the manageable object enabled.
public override bool IsEnabled<TX>(TX? manageable) where TX : ISystem
Parameters
manageable
TX
Returns
Type Parameters
TX
OnManageableAdded<TX>(IPlugin, ISystem?, bool)
protected override void OnManageableAdded<TX>(IPlugin plugin, ISystem? manageable, bool failIfExists) where TX : ISystem
Parameters
Type Parameters
TX
OnManageableRemoved<TX>(IPlugin, ISystem?)
protected override void OnManageableRemoved<TX>(IPlugin plugin, ISystem? manageable) where TX : ISystem
Parameters
Type Parameters
TX
RemoveSystem<T>(IPlugin)
public void RemoveSystem<T>(IPlugin plugin) where T : ISystem
Parameters
plugin
IPlugin
Type Parameters
T
StartUpdates()
protected virtual void StartUpdates()
StopUpdates()
protected virtual void StopUpdates()