Barotrauma Client Doc
Barotrauma.MultiplayerPreferences Class Reference

Classes

struct  JobPreference
 

Public Member Functions

void SaveTo (XElement element)
 
bool AreJobPreferencesEqual (IReadOnlyList< JobPreference > other)
 

Static Public Member Functions

static void Init (params XElement?[] elements)
 

Public Attributes

readonly List< JobPreferenceJobPreferences = new List<JobPreference>()
 
CharacterTeamType TeamPreference
 
string PlayerName = string.Empty
 
readonly HashSet< IdentifierTagSet = new HashSet<Identifier>()
 
int HairIndex = -1
 
int BeardIndex = -1
 
int MoustacheIndex = -1
 
int FaceAttachmentIndex = -1
 
Color HairColor = Color.Black
 
Color FacialHairColor = Color.Black
 
Color SkinColor = Color.Black
 

Properties

static MultiplayerPreferences Instance = new MultiplayerPreferences() [get]
 

Detailed Description

Definition at line 12 of file MultiplayerPreferences.cs.

Member Function Documentation

◆ AreJobPreferencesEqual()

bool Barotrauma.MultiplayerPreferences.AreJobPreferencesEqual ( IReadOnlyList< JobPreference other)

◆ Init()

static void Barotrauma.MultiplayerPreferences.Init ( params XElement?[]  elements)
static

Definition at line 82 of file MultiplayerPreferences.cs.

◆ SaveTo()

void Barotrauma.MultiplayerPreferences.SaveTo ( XElement  element)

Definition at line 87 of file MultiplayerPreferences.cs.

Member Data Documentation

◆ BeardIndex

int Barotrauma.MultiplayerPreferences.BeardIndex = -1

Definition at line 48 of file MultiplayerPreferences.cs.

◆ FaceAttachmentIndex

int Barotrauma.MultiplayerPreferences.FaceAttachmentIndex = -1

Definition at line 50 of file MultiplayerPreferences.cs.

◆ FacialHairColor

Color Barotrauma.MultiplayerPreferences.FacialHairColor = Color.Black

Definition at line 52 of file MultiplayerPreferences.cs.

◆ HairColor

Color Barotrauma.MultiplayerPreferences.HairColor = Color.Black

Definition at line 51 of file MultiplayerPreferences.cs.

◆ HairIndex

int Barotrauma.MultiplayerPreferences.HairIndex = -1

Definition at line 47 of file MultiplayerPreferences.cs.

◆ JobPreferences

readonly List<JobPreference> Barotrauma.MultiplayerPreferences.JobPreferences = new List<JobPreference>()

Definition at line 42 of file MultiplayerPreferences.cs.

◆ MoustacheIndex

int Barotrauma.MultiplayerPreferences.MoustacheIndex = -1

Definition at line 49 of file MultiplayerPreferences.cs.

◆ PlayerName

string Barotrauma.MultiplayerPreferences.PlayerName = string.Empty

Definition at line 44 of file MultiplayerPreferences.cs.

◆ SkinColor

Color Barotrauma.MultiplayerPreferences.SkinColor = Color.Black

Definition at line 53 of file MultiplayerPreferences.cs.

◆ TagSet

readonly HashSet<Identifier> Barotrauma.MultiplayerPreferences.TagSet = new HashSet<Identifier>()

Definition at line 46 of file MultiplayerPreferences.cs.

◆ TeamPreference

CharacterTeamType Barotrauma.MultiplayerPreferences.TeamPreference

Definition at line 43 of file MultiplayerPreferences.cs.

Property Documentation

◆ Instance

MultiplayerPreferences Barotrauma.MultiplayerPreferences.Instance = new MultiplayerPreferences()
staticget

Definition at line 55 of file MultiplayerPreferences.cs.