static void AssemblyLoader.ClearPlugins |
( |
| ) |
|
|
inlinestatic |
static void AssemblyLoader.FlagDuplicatedPlugins |
( |
| ) |
|
|
inlinestatic |
Goes through the cached assembly information and flags duplicate plugins.
static System.Type AssemblyLoader.GetClassByName |
( |
System.Type |
baseType, |
|
|
string |
name |
|
) |
| |
|
inlinestatic |
Retrieves a class of base type T from the loaded types
- Template Parameters
-
- Parameters
-
name | Name of type to retrieve |
- Returns
- Type cast to BaseType on success or null on failure
static List<ConstructorInfo> AssemblyLoader.GetModulesImplementingInterface< T > |
( |
System.Type[] |
param_types | ) |
|
|
inlinestatic |
static string AssemblyLoader.GetPathByType |
( |
System.Type |
type | ) |
|
|
inlinestatic |
Retrieves the relative assembly path from a type contained therein
- Parameters
-
- Returns
static List<Type> AssemblyLoader.GetSubclassesOfParentClass |
( |
Type |
parentType | ) |
|
|
inlinestatic |
Get a list of subclasses of the parent class.
- Parameters
-
parentType | Type representing the parent class. |
- Returns
- Returns a list of the subclasses of the parent class. The parent will not be included in the list.
static List<Type> AssemblyLoader.GetTypesOfClassesImplementingInterface< T > |
( |
| ) |
|
|
inlinestatic |
Get a list of classes which implement a specified interface.
- Returns
- Returns a list of the classes which implement the specified interface T.
static void AssemblyLoader.Initialize |
( |
string[] |
baseTypes | ) |
|
|
inlinestatic |
Initialize the AssemblyLoader from array of string type names
- Parameters
-
static void AssemblyLoader.Initialize |
( |
System.Type[] |
baseTypes | ) |
|
|
inlinestatic |
Initialize the AssemblyLoader from array of types
- Parameters
-
< Define forbiddens.
< Load the base assembly
static void AssemblyLoader.LoadAssemblies |
( |
| ) |
|
|
inlinestatic |
< via IgorZ, see above
< just in case
< Iterate through types in the assembly
< Report additional info if it's a ReflectionTypeLoadException.
< make the assembly null so we can remove it from the list later
static bool AssemblyLoader.LoadPlugin |
( |
FileInfo |
file, |
|
|
string |
url, |
|
|
ConfigNode |
assemblyNode |
|
) |
| |
|
inlinestatic |
Load a plugin from given FileInfo
- Returns
- true/false of success
static void AssemblyLoader.LoadPluginInfo |
( |
FileInfo |
file, |
|
|
string |
url, |
|
|
ConfigNode |
assemblyNode |
|
) |
| |
|
inlinestatic |
Load and cache relevant plugin info, such as name, path and version
List<System.Type> AssemblyLoader.loadedTypes |
|
static |
The documentation for this class was generated from the following file: