Table of Contents

Class SystemManager

Namespace
RisingV.Shared.Systems
Assembly
RisingV.Shared.dll

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

List<ITickSystem>

Properties

FrameInterval

public int FrameInterval { get; set; }

Property Value

int

Log

protected override Logger Log { get; }

Property Value

Logger

TimeScale

public float TimeScale { get; set; }

Property Value

float

UseBuiltInTickRunner

Indicates whether to use the built-in tick runner for updates.

public bool UseBuiltInTickRunner { get; set; }

Property Value

bool

Methods

AddSystem<T>(IPlugin, bool)

public T? AddSystem<T>(IPlugin plugin, bool failIfExists = true) where T : ISystem

Parameters

plugin IPlugin
failIfExists bool

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

plugin IPlugin
system T
failIfExists bool

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

bool

Type Parameters

TX

OnManageableAdded<TX>(IPlugin, ISystem?, bool)

protected override void OnManageableAdded<TX>(IPlugin plugin, ISystem? manageable, bool failIfExists) where TX : ISystem

Parameters

plugin IPlugin
manageable ISystem
failIfExists bool

Type Parameters

TX

OnManageableRemoved<TX>(IPlugin, ISystem?)

protected override void OnManageableRemoved<TX>(IPlugin plugin, ISystem? manageable) where TX : ISystem

Parameters

plugin IPlugin
manageable ISystem

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()