‪TechbloxModdingAPI  ‪v2.2.0
‪The unofficial Techblox modding API
TechbloxModdingAPI.Utility.Dependency Class Reference

‪Simple plugin interaction operations More...

Static Public Member Functions

static IPlugin GetPlugin (string name)
 ‪Find a plugin by name More...
 
static Version GetPluginVersion (string name)
 ‪Gets the plugin version. This gives priority to the plugin's Version string but falls back to the Assembly's version More...
 
static bool Hell (string name, Version version=null)
 ‪Detect if you're in dependency hell with respect to the plugin. ie Check if the plugin doesn't exist or is out of date. When version is null, this only checks if the plugin exists. The version is retrieved using GetPluginVersion(string name). More...
 

Detailed Description

Simple plugin interaction operations

Member Function Documentation

◆ GetPlugin()

static IPlugin TechbloxModdingAPI.Utility.Dependency.GetPlugin ( string  name)
inlinestatic

‪Find a plugin by name

Returns
‪The plugin.
Parameters
name‪The plugin's name.

◆ GetPluginVersion()

static Version TechbloxModdingAPI.Utility.Dependency.GetPluginVersion ( string  name)
inlinestatic

‪Gets the plugin version. This gives priority to the plugin's Version string but falls back to the Assembly's version

Returns
‪The plugin's version.
Parameters
name‪The plugin's name.

◆ Hell()

static bool TechbloxModdingAPI.Utility.Dependency.Hell ( string  name,
Version  version = null 
)
inlinestatic

‪Detect if you're in dependency hell with respect to the plugin. ie Check if the plugin doesn't exist or is out of date. When version is null, this only checks if the plugin exists. The version is retrieved using GetPluginVersion(string name).

Returns
‪Are you in dependency hell?
Parameters
name‪The plugin's name'
version‪The target version.

The documentation for this class was generated from the following file: