Barotrauma Client Doc
|
Public Member Functions | |
RegularPackage (XDocument doc, string path) | |
![]() | |
readonly record struct | LoadError (string Message, Exception? Exception) |
async Task< bool > | IsUpToDate () |
bool | HashMismatches (string expectedHash) |
IEnumerable< T > | GetFiles< T > () |
IEnumerable< ContentFile > | GetFiles (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 | |
![]() | |
enum class | LoadResult { Success , Failure } |
![]() | |
static Result< ContentPackage, Exception > | TryLoad (string path) |
static bool | PathAllowedAsLocalModFile (string path) |
![]() | |
readonly string | Name |
readonly ImmutableArray< string > | AltNames |
readonly string | Path |
readonly Option< ContentPackageId > | UgcId |
readonly Version | GameVersion |
readonly string | ModVersion |
readonly Option< SerializableDateTime > | InstallTime |
![]() | |
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" |
![]() | |
ContentPackage (XDocument doc, string path) | |
void | AssertCondition (bool condition, string errorMsg) |
![]() | |
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 5 of file RegularPackage.cs.
Barotrauma.RegularPackage.RegularPackage | ( | XDocument | doc, |
string | path | ||
) |
Definition at line 7 of file RegularPackage.cs.