Table of Contents

Class System

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

Represents a base class for systems

public abstract class System : ISystem, IManageableLifecycle<SystemManager>, IManageableLifecycle, IReloadable, IManageable<SystemManager>, IManageable
Inheritance
System
Implements
Derived
Inherited Members
Extension Methods

Constructors

System(ISystemConfig?)

Represents a base class for systems

protected System(ISystemConfig? config = null)

Parameters

config ISystemConfig

The configuration for the system.

Properties

Config

Gets the configuration for the system.

public ISystemConfig? Config { get; }

Property Value

ISystemConfig

Enabled

Gets a value indicating whether the system is enabled.

public bool Enabled { get; }

Property Value

bool

Methods

Initialize(SystemManager, List<IPlugin>)

Initializes the lifecycle of the manager with a specific type.

public virtual void Initialize(SystemManager manager, List<IPlugin> plugins)

Parameters

manager SystemManager
plugins List<IPlugin>

Load(SystemManager, List<IPlugin>)

Loads the manager and its dependencies with a specific type.

public virtual void Load(SystemManager manager, List<IPlugin> plugins)

Parameters

manager SystemManager
plugins List<IPlugin>

OnDisable()

protected virtual void OnDisable()

OnEnable()

protected virtual void OnEnable()

Ready(SystemManager, List<IPlugin>)

Prepares the manager for use with a specific type, typically after loading.

public virtual void Ready(SystemManager manager, List<IPlugin> plugins)

Parameters

manager SystemManager
plugins List<IPlugin>

Reload(SystemManager, List<IPlugin>, ReloadReason)

Reloads the manager and its dependencies with a specific type.

public virtual void Reload(SystemManager manager, List<IPlugin> plugins, ReloadReason reason)

Parameters

manager SystemManager
plugins List<IPlugin>
reason ReloadReason

SetEnabled(bool)

public virtual void SetEnabled(bool enabled)

Parameters

enabled bool

Terminate(SystemManager, List<IPlugin>)

Terminates the manager and cleans up resources with a specific type.

public virtual void Terminate(SystemManager manager, List<IPlugin> plugins)

Parameters

manager SystemManager
plugins List<IPlugin>

Unload(SystemManager, List<IPlugin>)

Unloads the manager and its dependencies with a specific type.

public virtual void Unload(SystemManager manager, List<IPlugin> plugins)

Parameters

manager SystemManager
plugins List<IPlugin>