Table of Contents

Interface ISystemRegistry

Namespace
SampSharp.Entities
Assembly
SampSharp.OpenMp.Entities.dll

Provides the functionality for a registry of system types.

public interface ISystemRegistry

Methods

Get(Type)

Gets all systems of the specified type.

ReadOnlyMemory<ISystem> Get(Type type)

Parameters

type Type

The type of the systems to get.

Returns

ReadOnlyMemory<ISystem>

A segment of memory containing instances of systems of the specified type.

GetSystemTypes()

Gets all implementation types of registered systems in this system registry.

ReadOnlyMemory<Type> GetSystemTypes()

Returns

ReadOnlyMemory<Type>

A segment of memory containing all implementation types of registered systems.

Get<TSystem>()

Gets all systems of the specified TSystem.

ReadOnlyMemory<ISystem> Get<TSystem>() where TSystem : ISystem

Returns

ReadOnlyMemory<ISystem>

A segment of memory containing instances of systems of the specified type.

Type Parameters

TSystem

The type of the systems to get.

Register(Action)

Registers a handler to be called when the system registry has been loaded. The handler will be called immediately if the system registry has already been loaded.

void Register(Action handler)

Parameters

handler Action

The handler to call when the system registry has been loaded.