Barotrauma Client Doc
Barotrauma.ModProject.File Class Reference

Public Member Functions

XElement ToXElement ()
 

Static Public Member Functions

static File FromContentFile (ContentFile file)
 
static File FromPath< T > (string path)
 
static File FromPath (string path, Type type)
 Prefer FromPath<T> when possible, this just exists for cases where the type can only be decided at runtime More...
 

Public Attributes

readonly string Path
 
readonly Type Type
 

Detailed Description

Definition at line 13 of file ModProject.cs.

Member Function Documentation

◆ FromContentFile()

static File Barotrauma.ModProject.File.FromContentFile ( ContentFile  file)
static

◆ FromPath()

static File Barotrauma.ModProject.File.FromPath ( string  path,
Type  type 
)
static

Prefer FromPath<T> when possible, this just exists for cases where the type can only be decided at runtime

◆ FromPath< T >()

static File Barotrauma.ModProject.File.FromPath< T > ( string  path)
static
Type Constraints
T :ContentFile 
T :new 
T :File 
T :path 
T :typeof 
T :T 

◆ ToXElement()

XElement Barotrauma.ModProject.File.ToXElement ( )

Definition at line 48 of file ModProject.cs.

Member Data Documentation

◆ Path

readonly string Barotrauma.ModProject.File.Path

Definition at line 45 of file ModProject.cs.

◆ Type

readonly Type Barotrauma.ModProject.File.Type

Definition at line 46 of file ModProject.cs.