Table of Contents

Class PluginInfo

Namespace
RisingV.Shared.Plugins
Assembly
RisingV.Shared.dll

Represents information about a plugin.

[Serializable]
public class PluginInfo
Inheritance
PluginInfo
Inherited Members
Extension Methods

Constructors

PluginInfo(PluginInfo)

public PluginInfo(PluginInfo pluginInfo)

Parameters

pluginInfo PluginInfo

PluginInfo(string?, string?, string?)

Represents information about a plugin.

public PluginInfo(string? guid, string? name, string? version)

Parameters

guid string

The unique identifier for the plugin.

name string

The name of the plugin.

version string

The version of the plugin.

Properties

ConfigPath

Gets the path to the plugin's configuration directory.

public string ConfigPath { get; }

Property Value

string

Guid

Gets or sets the unique identifier for the plugin.

public string Guid { get; protected set; }

Property Value

string

Name

Gets or sets the name of the plugin.

public string Name { get; protected set; }

Property Value

string

PluginPath

public string PluginPath { get; }

Property Value

string

Version

Gets or sets the version of the plugin.

public string Version { get; protected set; }

Property Value

string

Methods

FromConfigPath(string)

Combines the plugin's configuration path with a relative path to create a full path.

public string FromConfigPath(string relativePath)

Parameters

relativePath string

The relative path to combine with the plugin's configuration path.

Returns

string

A full path that combines the plugin's configuration path with the specified relative path.

FromType(Type)

Creates a new instance of PluginInfo from a static type that contains plugin information.

public static PluginInfo FromType(Type infoStaticType)

Parameters

infoStaticType Type

The static type that contains plugin information.

Returns

PluginInfo

A new instance of PluginInfo.

GetPluginValue(Type, PluginInfoType)

Gets the value of a specific plugin information type from a static type.

public static string? GetPluginValue(Type infoStaticType, PluginInfoType infoType)

Parameters

infoStaticType Type

The static type that contains plugin information.

infoType PluginInfoType

The type of plugin information to retrieve.

Returns

string

The value of the specified plugin information type, or null if not found.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.