Barotrauma Client Doc
Barotrauma.ModListPreset Struct Reference

Public Types

enum class  ModType { Vanilla , Local , Workshop }
 

Public Member Functions

 ModListPreset (XDocument doc)
 
 ModListPreset (string name, CorePackage corePackage, IReadOnlyList< RegularPackage > regularPackages)
 
RichString GetTooltip ()
 
void Save ()
 

Public Attributes

readonly string Name
 
readonly CorePackage CorePackage
 
readonly ImmutableArray< RegularPackageRegularPackages
 

Static Public Attributes

const string SavePath = "ModLists"
 

Detailed Description

Definition at line 14 of file ModListPreset.cs.

Member Enumeration Documentation

◆ ModType

Enumerator
Vanilla 
Local 
Workshop 

Definition at line 18 of file ModListPreset.cs.

Constructor & Destructor Documentation

◆ ModListPreset() [1/2]

Barotrauma.ModListPreset.ModListPreset ( XDocument  doc)

Definition at line 29 of file ModListPreset.cs.

◆ ModListPreset() [2/2]

Barotrauma.ModListPreset.ModListPreset ( string  name,
CorePackage  corePackage,
IReadOnlyList< RegularPackage regularPackages 
)

Definition at line 74 of file ModListPreset.cs.

Member Function Documentation

◆ GetTooltip()

RichString Barotrauma.ModListPreset.GetTooltip ( )

Definition at line 81 of file ModListPreset.cs.

◆ Save()

void Barotrauma.ModListPreset.Save ( )

Definition at line 96 of file ModListPreset.cs.

Member Data Documentation

◆ CorePackage

readonly CorePackage Barotrauma.ModListPreset.CorePackage

Definition at line 26 of file ModListPreset.cs.

◆ Name

readonly string Barotrauma.ModListPreset.Name

Definition at line 25 of file ModListPreset.cs.

◆ RegularPackages

readonly ImmutableArray<RegularPackage> Barotrauma.ModListPreset.RegularPackages

Definition at line 27 of file ModListPreset.cs.

◆ SavePath

const string Barotrauma.ModListPreset.SavePath = "ModLists"
static

Definition at line 16 of file ModListPreset.cs.