Simple plugin interaction operations
More...
|
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...
|
|
Simple plugin interaction operations
◆ GetPlugin()
static IPlugin TechbloxModdingAPI.Utility.Dependency.GetPlugin |
( |
string |
name | ) |
|
|
inlinestatic |
Find a plugin by name
- Returns
- The plugin.
- Parameters
-
◆ 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
-
◆ 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: