Barotrauma Client Doc
Barotrauma.OutpostModuleInfo Class Reference
Inheritance diagram for Barotrauma.OutpostModuleInfo:
Barotrauma.ISerializableEntity

Public Types

enum class  GapPosition {
  None = 0 , Right = 1 , Left = 2 , Top = 4 ,
  Bottom = 8
}
 

Public Member Functions

 OutpostModuleInfo (SubmarineInfo submarineInfo, XElement element)
 
 OutpostModuleInfo (SubmarineInfo submarineInfo)
 
 OutpostModuleInfo (OutpostModuleInfo original)
 
void SetFlags (IEnumerable< Identifier > newFlags)
 
void SetAllowAttachTo (IEnumerable< Identifier > allowAttachTo)
 
void SetAllowedLocationTypes (IEnumerable< Identifier > allowedLocationTypes)
 
void DetermineGapPositions (Submarine sub)
 
void Save (XElement element)
 

Properties

IEnumerable< IdentifierModuleFlags [get]
 
IEnumerable< IdentifierAllowAttachToModules [get]
 
IEnumerable< IdentifierAllowedLocationTypes [get]
 
int MaxCount [get, set]
 
float Commonness [get, set]
 
GapPosition GapPositions [get, set]
 
GapPosition CanAttachToPrevious [get, set]
 
string Name [get]
 
Dictionary< Identifier, SerializablePropertySerializableProperties [get]
 
- Properties inherited from Barotrauma.ISerializableEntity
string Name [get]
 
Dictionary< Identifier, SerializablePropertySerializableProperties [get]
 

Detailed Description

Definition at line 9 of file OutpostModuleInfo.cs.

Member Enumeration Documentation

◆ GapPosition

Enumerator
None 
Right 
Left 
Top 
Bottom 

Definition at line 12 of file OutpostModuleInfo.cs.

Constructor & Destructor Documentation

◆ OutpostModuleInfo() [1/3]

Barotrauma.OutpostModuleInfo.OutpostModuleInfo ( SubmarineInfo  submarineInfo,
XElement  element 
)

Definition at line 55 of file OutpostModuleInfo.cs.

◆ OutpostModuleInfo() [2/3]

Barotrauma.OutpostModuleInfo.OutpostModuleInfo ( SubmarineInfo  submarineInfo)

Definition at line 66 of file OutpostModuleInfo.cs.

◆ OutpostModuleInfo() [3/3]

Barotrauma.OutpostModuleInfo.OutpostModuleInfo ( OutpostModuleInfo  original)

Definition at line 71 of file OutpostModuleInfo.cs.

Member Function Documentation

◆ DetermineGapPositions()

void Barotrauma.OutpostModuleInfo.DetermineGapPositions ( Submarine  sub)

Definition at line 136 of file OutpostModuleInfo.cs.

◆ Save()

void Barotrauma.OutpostModuleInfo.Save ( XElement  element)

Definition at line 162 of file OutpostModuleInfo.cs.

◆ SetAllowAttachTo()

void Barotrauma.OutpostModuleInfo.SetAllowAttachTo ( IEnumerable< Identifier allowAttachTo)

Definition at line 112 of file OutpostModuleInfo.cs.

◆ SetAllowedLocationTypes()

void Barotrauma.OutpostModuleInfo.SetAllowedLocationTypes ( IEnumerable< Identifier allowedLocationTypes)

Definition at line 126 of file OutpostModuleInfo.cs.

◆ SetFlags()

void Barotrauma.OutpostModuleInfo.SetFlags ( IEnumerable< Identifier newFlags)

Definition at line 89 of file OutpostModuleInfo.cs.

Property Documentation

◆ AllowAttachToModules

IEnumerable<Identifier> Barotrauma.OutpostModuleInfo.AllowAttachToModules
get

Definition at line 28 of file OutpostModuleInfo.cs.

◆ AllowedLocationTypes

IEnumerable<Identifier> Barotrauma.OutpostModuleInfo.AllowedLocationTypes
get

Definition at line 34 of file OutpostModuleInfo.cs.

◆ CanAttachToPrevious

GapPosition Barotrauma.OutpostModuleInfo.CanAttachToPrevious
getset

Definition at line 49 of file OutpostModuleInfo.cs.

◆ Commonness

float Barotrauma.OutpostModuleInfo.Commonness
getset

Definition at line 43 of file OutpostModuleInfo.cs.

◆ GapPositions

GapPosition Barotrauma.OutpostModuleInfo.GapPositions
getset

Definition at line 46 of file OutpostModuleInfo.cs.

◆ MaxCount

int Barotrauma.OutpostModuleInfo.MaxCount
getset

Definition at line 40 of file OutpostModuleInfo.cs.

◆ ModuleFlags

IEnumerable<Identifier> Barotrauma.OutpostModuleInfo.ModuleFlags
get

Definition at line 22 of file OutpostModuleInfo.cs.

◆ Name

string Barotrauma.OutpostModuleInfo.Name
get

Definition at line 51 of file OutpostModuleInfo.cs.

◆ SerializableProperties

Dictionary<Identifier, SerializableProperty> Barotrauma.OutpostModuleInfo.SerializableProperties
get

Definition at line 53 of file OutpostModuleInfo.cs.