|
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.
|
|
|
Action | OnDispose |
| Called when clean up is being performed. Use when relying on or making use of references from this manager.
|
|
◆ Dispose()
void Barotrauma.CsPackageManager.Dispose |
( |
| ) |
|
◆ GetCurrentPackagesByLoadOrder()
IEnumerable< ContentPackage > Barotrauma.CsPackageManager.GetCurrentPackagesByLoadOrder |
( |
| ) |
|
◆ GetOrCreateRunConfig()
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.
◆ InstantiatePlugins()
void Barotrauma.CsPackageManager.InstantiatePlugins |
( |
bool | force = false | ) |
|
Initializes plugin types that are registered.
- Parameters
-
◆ LoadAssemblyPackages()
Begins the loading process of scanning packages for scripts and binary assemblies, compiling and executing them.
- Returns
◆ LuaTryRegisterPackageTypes()
bool Barotrauma.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
◆ RunPluginsInit()
void Barotrauma.CsPackageManager.RunPluginsInit |
( |
| ) |
|
Executes instantiated plugins' Initialize() and OnLoadCompleted() methods.
◆ RunPluginsPreInit()
void Barotrauma.CsPackageManager.RunPluginsPreInit |
( |
| ) |
|
Executes instantiated plugins' PreInitPatching() method.
◆ TryGetLoadedPluginsForPackage()
Tries to get the loaded plugins for a given package.
- Parameters
-
package | Package to find. |
loadedPlugins | The collection of loaded plugins. |
- Returns
◆ TryGetPackageForPlugin< T >()
bool Barotrauma.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
◆ UnloadPlugins()
void Barotrauma.CsPackageManager.UnloadPlugins |
( |
| ) |
|
Unloads all plugins by calling Dispose() on them. Note: This does not remove their external references nor unregister their types.
◆ AssembliesLoaded
bool Barotrauma.CsPackageManager.AssembliesLoaded |
|
get |
Whether or not assemblies have been loaded.
◆ PluginsInitialized
bool Barotrauma.CsPackageManager.PluginsInitialized |
|
get |
Whether or not plugins' types have been instantiated.
◆ PluginsLoaded
bool Barotrauma.CsPackageManager.PluginsLoaded |
|
get |
Whether or not plugins are fully loaded.
◆ PluginsPreInit
bool Barotrauma.CsPackageManager.PluginsPreInit |
|
get |
Whether or not loaded plugins had their preloader run.
◆ OnDispose
Action Barotrauma.CsPackageManager.OnDispose |
Called when clean up is being performed. Use when relying on or making use of references from this manager.
The documentation for this class was generated from the following file:
- /home/runner/work/Luatrauma.Docs/Luatrauma.Docs/libs/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/Plugins/CsPackageManager.cs