|
static bool | GetOrCreateRunConfig (ContentPackage package, out RunConfig config) |
| Gets the RunConfig.xml for the given package located at [cp_root]/CSharp/RunConfig.xml. Generates a default config if one is not found. More...
|
|
|
Action | OnDispose |
| Called when clean up is being performed. Use when relying on or making use of references from this manager. More...
|
|
Definition at line 20 of file CsPackageManager.cs.
◆ Dispose()
void CsPackageManager.Dispose |
( |
| ) |
|
◆ GetCurrentPackagesByLoadOrder()
IEnumerable<ContentPackage> CsPackageManager.GetCurrentPackagesByLoadOrder |
( |
| ) |
|
◆ GetOrCreateRunConfig()
static bool CsPackageManager.GetOrCreateRunConfig |
( |
ContentPackage |
package, |
|
|
out RunConfig |
config |
|
) |
| |
|
static |
Gets the RunConfig.xml for the given package located at [cp_root]/CSharp/RunConfig.xml. Generates a default config if one is not found.
- Parameters
-
package | The package to search for. |
config | RunConfig data. |
- Returns
- True if a config is loaded, false if one was created.
Definition at line 810 of file CsPackageManager.cs.
◆ InstantiatePlugins()
void CsPackageManager.InstantiatePlugins |
( |
bool |
force = false | ) |
|
◆ LoadAssemblyPackages()
AssemblyLoadingSuccessState CsPackageManager.LoadAssemblyPackages |
( |
| ) |
|
Begins the loading process of scanning packages for scripts and binary assemblies, compiling and executing them.
- Returns
Definition at line 300 of file CsPackageManager.cs.
◆ LuaTryRegisterPackageTypes()
bool CsPackageManager.LuaTryRegisterPackageTypes |
( |
string |
name, |
|
|
bool |
caseSensitive = false |
|
) |
| |
Searches for all types in all loaded assemblies from content packages who's names contain the name string and registers them with the Lua Interpreter.
- Parameters
-
- Returns
Definition at line 117 of file CsPackageManager.cs.
◆ RunPluginsInit()
void CsPackageManager.RunPluginsInit |
( |
| ) |
|
Executes instantiated plugins' Initialize() and OnLoadCompleted() methods.
Definition at line 652 of file CsPackageManager.cs.
◆ RunPluginsPreInit()
void CsPackageManager.RunPluginsPreInit |
( |
| ) |
|
◆ TryGetLoadedPluginsForPackage()
bool CsPackageManager.TryGetLoadedPluginsForPackage |
( |
ContentPackage |
package, |
|
|
out IEnumerable< IAssemblyPlugin > |
loadedPlugins |
|
) |
| |
Tries to get the loaded plugins for a given package.
- Parameters
-
package | Package to find. |
loadedPlugins | The collection of loaded plugins. |
- Returns
Definition at line 203 of file CsPackageManager.cs.
◆ TryGetPackageForPlugin< T >()
bool CsPackageManager.TryGetPackageForPlugin< T > |
( |
out ContentPackage |
package | ) |
|
Tries to find the content package that a given plugin belongs to.
- Parameters
-
package | Package if found, null otherwise. |
- Template Parameters
-
- Returns
Definition at line 180 of file CsPackageManager.cs.
◆ UnloadPlugins()
void CsPackageManager.UnloadPlugins |
( |
| ) |
|
Unloads all plugins by calling Dispose() on them. Note: This does not remove their external references nor unregister their types.
Definition at line 784 of file CsPackageManager.cs.
◆ AssembliesLoaded
bool CsPackageManager.AssembliesLoaded |
|
get |
◆ PluginsInitialized
bool CsPackageManager.PluginsInitialized |
|
get |
◆ PluginsLoaded
bool CsPackageManager.PluginsLoaded |
|
get |
◆ PluginsPreInit
bool CsPackageManager.PluginsPreInit |
|
get |
◆ OnDispose
Action CsPackageManager.OnDispose |
Called when clean up is being performed. Use when relying on or making use of references from this manager.
Definition at line 218 of file CsPackageManager.cs.