Barotrauma Client Doc
Barotrauma.ContentPath Class Reference

Public Member Functions

override bool Equals (object? obj)
 
override int GetHashCode ()
 
bool IsPathNullOrEmpty ()
 
bool IsPathNullOrWhiteSpace ()
 
bool EndsWith (string suffix)
 
override? string ToString ()
 

Static Public Member Functions

static ContentPath FromRaw (string? rawValue)
 
static ContentPath FromRaw (ContentPackage? contentPackage, string? rawValue)
 
static ContentPath FromEvaluated (ContentPackage? contentPackage, string? evaluatedValue)
 
static bool operator== (ContentPath a, ContentPath b)
 
static bool operator!= (ContentPath a, ContentPath b)
 
static bool operator== (ContentPath a, string? b)
 
static bool operator!= (ContentPath a, string? b)
 
static bool operator== (string? a, ContentPath b)
 
static bool operator!= (string? a, ContentPath b)
 

Public Attributes

readonly? string RawValue
 
readonly? ContentPackage ContentPackage
 

Static Public Attributes

static readonly ContentPath Empty = new ContentPath(null, "")
 
const string ModDirStr = "%ModDir%"
 
const string OtherModDirFmt = "%ModDir:{0}%"
 

Protected Member Functions

bool Equals (ContentPath other)
 

Properties

string???????????? Value [get]
 
string FullPath [get]
 

Detailed Description

Definition at line 10 of file ContentPath.cs.

Member Function Documentation

◆ EndsWith()

bool Barotrauma.ContentPath.EndsWith ( string  suffix)

◆ Equals() [1/2]

bool Barotrauma.ContentPath.Equals ( ContentPath  other)
protected

Definition at line 141 of file ContentPath.cs.

◆ Equals() [2/2]

override bool Barotrauma.ContentPath.Equals ( object?  obj)

Definition at line 146 of file ContentPath.cs.

◆ FromEvaluated()

static ContentPath Barotrauma.ContentPath.FromEvaluated ( ContentPackage contentPackage,
string?  evaluatedValue 
)
static

Definition at line 111 of file ContentPath.cs.

◆ FromRaw() [1/2]

static ContentPath Barotrauma.ContentPath.FromRaw ( ContentPackage contentPackage,
string?  rawValue 
)
static

Definition at line 99 of file ContentPath.cs.

◆ FromRaw() [2/2]

static ContentPath Barotrauma.ContentPath.FromRaw ( string?  rawValue)
static

◆ GetHashCode()

override int Barotrauma.ContentPath.GetHashCode ( )

Definition at line 154 of file ContentPath.cs.

◆ IsPathNullOrEmpty()

bool Barotrauma.ContentPath.IsPathNullOrEmpty ( )

◆ IsPathNullOrWhiteSpace()

bool Barotrauma.ContentPath.IsPathNullOrWhiteSpace ( )

◆ operator!=() [1/3]

static bool Barotrauma.ContentPath.operator!= ( ContentPath  a,
ContentPath  b 
)
static

◆ operator!=() [2/3]

static bool Barotrauma.ContentPath.operator!= ( ContentPath  a,
string?  b 
)
static

◆ operator!=() [3/3]

static bool Barotrauma.ContentPath.operator!= ( string?  a,
ContentPath  b 
)
static

◆ operator==() [1/3]

static bool Barotrauma.ContentPath.operator== ( ContentPath  a,
ContentPath  b 
)
static

◆ operator==() [2/3]

static bool Barotrauma.ContentPath.operator== ( ContentPath  a,
string?  b 
)
static

◆ operator==() [3/3]

static bool Barotrauma.ContentPath.operator== ( string?  a,
ContentPath  b 
)
static

◆ ToString()

override? string Barotrauma.ContentPath.ToString ( )

Member Data Documentation

◆ ContentPackage

readonly? ContentPackage Barotrauma.ContentPath.ContentPackage

Definition at line 21 of file ContentPath.cs.

◆ Empty

readonly ContentPath Barotrauma.ContentPath.Empty = new ContentPath(null, "")
static

Definition at line 12 of file ContentPath.cs.

◆ ModDirStr

const string Barotrauma.ContentPath.ModDirStr = "%ModDir%"
static

Definition at line 14 of file ContentPath.cs.

◆ OtherModDirFmt

const string Barotrauma.ContentPath.OtherModDirFmt = "%ModDir:{0}%"
static

Definition at line 15 of file ContentPath.cs.

◆ RawValue

readonly? string Barotrauma.ContentPath.RawValue

Definition at line 19 of file ContentPath.cs.

Property Documentation

◆ FullPath

string Barotrauma.ContentPath.FullPath
get

Definition at line 70 of file ContentPath.cs.

◆ Value

string???????????? Barotrauma.ContentPath.Value
get

Definition at line 26 of file ContentPath.cs.