Barotrauma Client Doc
Barotrauma.ModProject Class Reference

Classes

class  File
 

Public Member Functions

 ModProject ()
 
 ModProject (ContentPackage? contentPackage)
 
bool HasFile (File file)
 
void AddFile (File file)
 
void RemoveFile (File file)
 
void DiscardHashAndInstallTime ()
 
XDocument ToXDocument ()
 
void Save (string path)
 

Static Public Member Functions

static string IncrementModVersion (string modVersion)
 

Public Attributes

readonly List< string > AltNames = new List<string>()
 
string ModVersion = ContentPackage.DefaultModVersion
 
bool IsCore = false
 
Option< ContentPackageIdUgcId = Option<ContentPackageId>.None()
 
Option< SerializableDateTimeInstallTime = Option<SerializableDateTime>.None()
 

Properties

string Name [get, set]
 
IReadOnlyList< FileFiles [get]
 
Md5HashExpectedHash [get, set]
 

Detailed Description

Definition at line 11 of file ModProject.cs.

Constructor & Destructor Documentation

◆ ModProject() [1/2]

Barotrauma.ModProject.ModProject ( )

Definition at line 56 of file ModProject.cs.

◆ ModProject() [2/2]

Barotrauma.ModProject.ModProject ( ContentPackage contentPackage)

Definition at line 58 of file ModProject.cs.

Member Function Documentation

◆ AddFile()

void Barotrauma.ModProject.AddFile ( File  file)

Definition at line 102 of file ModProject.cs.

◆ DiscardHashAndInstallTime()

void Barotrauma.ModProject.DiscardHashAndInstallTime ( )

Definition at line 120 of file ModProject.cs.

◆ HasFile()

bool Barotrauma.ModProject.HasFile ( File  file)

◆ IncrementModVersion()

static string Barotrauma.ModProject.IncrementModVersion ( string  modVersion)
static

Definition at line 126 of file ModProject.cs.

◆ RemoveFile()

void Barotrauma.ModProject.RemoveFile ( File  file)

Definition at line 111 of file ModProject.cs.

◆ Save()

void Barotrauma.ModProject.Save ( string  path)

Definition at line 172 of file ModProject.cs.

◆ ToXDocument()

XDocument Barotrauma.ModProject.ToXDocument ( )

Definition at line 149 of file ModProject.cs.

Member Data Documentation

◆ AltNames

readonly List<string> Barotrauma.ModProject.AltNames = new List<string>()

Definition at line 82 of file ModProject.cs.

◆ InstallTime

Option<SerializableDateTime> Barotrauma.ModProject.InstallTime = Option<SerializableDateTime>.None()

Definition at line 95 of file ModProject.cs.

◆ IsCore

bool Barotrauma.ModProject.IsCore = false

Definition at line 91 of file ModProject.cs.

◆ ModVersion

string Barotrauma.ModProject.ModVersion = ContentPackage.DefaultModVersion

Definition at line 87 of file ModProject.cs.

◆ UgcId

Option<ContentPackageId> Barotrauma.ModProject.UgcId = Option<ContentPackageId>.None()

Definition at line 93 of file ModProject.cs.

Property Documentation

◆ ExpectedHash

Md5Hash? Barotrauma.ModProject.ExpectedHash
getset

Definition at line 89 of file ModProject.cs.

◆ Files

IReadOnlyList<File> Barotrauma.ModProject.Files
get

Definition at line 85 of file ModProject.cs.

◆ Name

string Barotrauma.ModProject.Name
getset

Definition at line 72 of file ModProject.cs.