|
| 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. More...
|
| |
| 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. More...
|
| |
| 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. More...
|
| |
Definition at line 15 of file ContentPackage.cs.
◆ LoadResult
◆ 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 >()
- Type Constraints
-
| T | : | ContentFile | |
| T | : | Files.OfType<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()
◆ 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 at line 29 of file ContentPackage.cs.
◆ 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.
Definition at line 64 of file ContentPackage.cs.
◆ 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.
Definition at line 55 of file ContentPackage.cs.
◆ 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.
Definition at line 85 of file ContentPackage.cs.
◆ Index
| int Barotrauma.ContentPackage.Index |
|
get |