Barotrauma Client Doc
Barotrauma.RegularPackage Class Reference
Inheritance diagram for Barotrauma.RegularPackage:
Barotrauma.ContentPackage

Public Member Functions

 RegularPackage (XDocument doc, string path)
 
- Public Member Functions inherited from Barotrauma.ContentPackage
readonly record struct LoadError (string Message, Exception? Exception)
 
async Task< bool > IsUpToDate ()
 
bool HashMismatches (string expectedHash)
 
IEnumerable< T > GetFiles< T > ()
 
IEnumerable< ContentFileGetFiles (Type type)
 
bool NameMatches (Identifier name)
 
bool NameMatches (string name)
 
Md5Hash CalculateHash (bool logging=false, string? name=null, string? modVersion=null)
 
void LoadFilesOfType< T > ()
 
void UnloadFilesOfType< T > ()
 
LoadResult LoadContent ()
 
IEnumerable< ContentPackageManager.LoadProgress > LoadContentEnumerable ()
 
void UnloadContent ()
 
void ReloadSubsAndItemAssemblies ()
 
void LogErrors ()
 

Additional Inherited Members

- Public Types inherited from Barotrauma.ContentPackage
enum class  LoadResult { Success , Failure }
 
- Static Public Member Functions inherited from Barotrauma.ContentPackage
static Result< ContentPackage, Exception > TryLoad (string path)
 
static bool PathAllowedAsLocalModFile (string path)
 
- Public Attributes inherited from Barotrauma.ContentPackage
readonly string Name
 
readonly ImmutableArray< string > AltNames
 
readonly string Path
 
readonly Option< ContentPackageIdUgcId
 
readonly Version GameVersion
 
readonly string ModVersion
 
readonly Option< SerializableDateTimeInstallTime
 
- Static Public Attributes inherited from Barotrauma.ContentPackage
static readonly Version MinimumHashCompatibleVersion = new Version(1, 1, 0, 0)
 
const string LocalModsDir = "LocalMods"
 
static readonly string WorkshopModsDir
 
const string FileListFileName = "filelist.xml"
 
const string DefaultModVersion = "1.0.0"
 
- Protected Member Functions inherited from Barotrauma.ContentPackage
 ContentPackage (XDocument doc, string path)
 
void AssertCondition (bool condition, string errorMsg)
 
- Properties inherited from Barotrauma.ContentPackage
string Dir [get]
 
Md5Hash Hash [get]
 
ImmutableArray< ContentFileFiles [get]
 
ImmutableArray< LoadErrorFatalLoadErrors [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...
 

Detailed Description

Definition at line 5 of file RegularPackage.cs.

Constructor & Destructor Documentation

◆ RegularPackage()

Barotrauma.RegularPackage.RegularPackage ( XDocument  doc,
string  path 
)

Definition at line 7 of file RegularPackage.cs.