|
| string | Dir [get] |
| |
| Md5Hash | Hash [get] |
| |
| ImmutableArray< ContentFile > | Files [get] |
| |
| ImmutableArray< LoadError > | FatalLoadErrors [get] |
| | Errors that occurred when loading this content package. Currently, all errors are considered fatal and the game will refuse to load a content package that has any errors.
|
| |
| Option< ContentPackageManager.LoadProgress.Error > | EnableError [get] |
| | An error that occurred when trying to enable this mod. This field doesn't directly affect whether or not this mod can be enabled, but if it's been set to anything other than Option.None then the game has already refused to enable it at least once.
|
| |
| bool | HasAnyErrors [get] |
| |
| int | Index [get] |
| |
| bool | HasMultiplayerSyncedContent [get] |
| | Does the content package include some content that needs to match between all players in multiplayer.
|
| |
◆ LoadResult
| Enumerator |
|---|
| Success | |
| Failure | |
◆ ContentPackage()
| Barotrauma.ContentPackage.ContentPackage |
( |
XDocument | doc, |
|
|
string | path ) |
|
protected |
◆ AssertCondition()
| void Barotrauma.ContentPackage.AssertCondition |
( |
bool | condition, |
|
|
string | errorMsg ) |
|
protected |
◆ CalculateHash()
| Md5Hash Barotrauma.ContentPackage.CalculateHash |
( |
bool | logging = false, |
|
|
string? | name = null, |
|
|
string? | modVersion = null ) |
◆ GetFiles()
| IEnumerable< ContentFile > Barotrauma.ContentPackage.GetFiles |
( |
Type | type | ) |
|
◆ GetFiles< T >()
◆ HashMismatches()
| bool Barotrauma.ContentPackage.HashMismatches |
( |
string | expectedHash | ) |
|
◆ IsUpToDate()
| async Task< bool > Barotrauma.ContentPackage.IsUpToDate |
( |
| ) |
|
◆ LoadContent()
| LoadResult Barotrauma.ContentPackage.LoadContent |
( |
| ) |
|
◆ LoadContentEnumerable()
| IEnumerable< ContentPackageManager.LoadProgress > Barotrauma.ContentPackage.LoadContentEnumerable |
( |
| ) |
|
◆ LoadError()
| readonly record struct Barotrauma.ContentPackage.LoadError |
( |
string | Message, |
|
|
Exception? | Exception ) |
◆ LoadFilesOfType< T >()
| void Barotrauma.ContentPackage.LoadFilesOfType< T > |
( |
| ) |
|
◆ LogErrors()
| void Barotrauma.ContentPackage.LogErrors |
( |
| ) |
|
◆ NameMatches() [1/2]
| bool Barotrauma.ContentPackage.NameMatches |
( |
Identifier | name | ) |
|
◆ NameMatches() [2/2]
| bool Barotrauma.ContentPackage.NameMatches |
( |
string | name | ) |
|
◆ PathAllowedAsLocalModFile()
| static bool Barotrauma.ContentPackage.PathAllowedAsLocalModFile |
( |
string | path | ) |
|
|
static |
◆ ReloadSubsAndItemAssemblies()
| void Barotrauma.ContentPackage.ReloadSubsAndItemAssemblies |
( |
| ) |
|
◆ TryLoad()
| static Result< ContentPackage, Exception > Barotrauma.ContentPackage.TryLoad |
( |
string | path | ) |
|
|
static |
◆ UnloadContent()
| void Barotrauma.ContentPackage.UnloadContent |
( |
| ) |
|
◆ UnloadFilesOfType< T >()
| void Barotrauma.ContentPackage.UnloadFilesOfType< T > |
( |
| ) |
|
◆ AltNames
| readonly ImmutableArray<string> Barotrauma.ContentPackage.AltNames |
◆ DefaultModVersion
| const string Barotrauma.ContentPackage.DefaultModVersion = "1.0.0" |
|
static |
◆ FileListFileName
| const string Barotrauma.ContentPackage.FileListFileName = "filelist.xml" |
|
static |
◆ GameVersion
| readonly Version Barotrauma.ContentPackage.GameVersion |
◆ InstallTime
◆ LocalModsDir
| const string Barotrauma.ContentPackage.LocalModsDir = "LocalMods" |
|
static |
◆ MinimumHashCompatibleVersion
| readonly Version Barotrauma.ContentPackage.MinimumHashCompatibleVersion = new Version(1, 1, 0, 0) |
|
static |
◆ ModVersion
| readonly string Barotrauma.ContentPackage.ModVersion |
◆ Name
| readonly string Barotrauma.ContentPackage.Name |
◆ Path
| readonly string Barotrauma.ContentPackage.Path |
◆ UgcId
◆ WorkshopModsDir
| readonly string Barotrauma.ContentPackage.WorkshopModsDir |
|
static |
Initial value:
SaveUtil.DefaultSaveFolder,
"WorkshopMods",
"Installed")
Definition AchievementManager.cs:12
◆ Dir
| string Barotrauma.ContentPackage.Dir |
|
get |
◆ EnableError
| Option<ContentPackageManager.LoadProgress.Error> Barotrauma.ContentPackage.EnableError |
|
get |
An error that occurred when trying to enable this mod. This field doesn't directly affect whether or not this mod can be enabled, but if it's been set to anything other than Option.None then the game has already refused to enable it at least once.
◆ FatalLoadErrors
| ImmutableArray<LoadError> Barotrauma.ContentPackage.FatalLoadErrors |
|
get |
Errors that occurred when loading this content package. Currently, all errors are considered fatal and the game will refuse to load a content package that has any errors.
◆ Files
| ImmutableArray<ContentFile> Barotrauma.ContentPackage.Files |
|
get |
◆ HasAnyErrors
| bool Barotrauma.ContentPackage.HasAnyErrors |
|
get |
◆ Hash
| Md5Hash Barotrauma.ContentPackage.Hash |
|
get |
◆ HasMultiplayerSyncedContent
| bool Barotrauma.ContentPackage.HasMultiplayerSyncedContent |
|
get |
Does the content package include some content that needs to match between all players in multiplayer.
◆ Index
| int Barotrauma.ContentPackage.Index |
|
get |
The documentation for this class was generated from the following file:
- /home/runner/work/Luatrauma.Docs/Luatrauma.Docs/libs/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/ContentManagement/ContentPackage/ContentPackage.cs