Table of Contents

Interface ITypeSource

Namespace
RisingV.Shared.Managers
Assembly
RisingV.Shared.dll

Interface for a type source that manages objects of a specific type.

public interface ITypeSource
Extension Methods

Methods

Add<TX>(IPlugin, Type, bool)

Get an object from the source.

TX Add<TX>(IPlugin plugin, Type type, bool failIfExists = true) where TX : IManageable

Parameters

plugin IPlugin
type Type
failIfExists bool

Returns

TX

Type Parameters

TX

Count()

Get the count of objects in the source.

int Count()

Returns

int

Has(string, out IManageable?, bool)

Do we have a manageable of a type name.

bool Has(string typeName, out IManageable? manageable, bool checkAssignable = true)

Parameters

typeName string
manageable IManageable
checkAssignable bool

Returns

bool

Has(Type, out IManageable?, bool)

Do we have an object of the type TX in the source.

bool Has(Type type, out IManageable? manageable, bool checkAssignable = true)

Parameters

type Type
manageable IManageable
checkAssignable bool

Returns

bool