Barotrauma Server
Loading...
Searching...
No Matches
Barotrauma.CharacterParams.InventoryParams Class Reference
Inheritance diagram for Barotrauma.CharacterParams.InventoryParams:
Barotrauma.CharacterParams.SubParam Barotrauma.ISerializableEntity

Classes

class  InventoryItem
 

Public Member Functions

 InventoryParams (ContentXElement element, CharacterParams character)
 
void AddItem (string identifier=null)
 
bool RemoveItem (InventoryItem item)
 
- Public Member Functions inherited from Barotrauma.CharacterParams.SubParam
 SubParam (ContentXElement element, CharacterParams character)
 
virtual bool Deserialize (bool recursive=true)
 
virtual bool Serialize (bool recursive=true)
 
virtual void Reset ()
 

Properties

override string Name [get]
 
string Slots [get]
 
bool AccessibleWhenAlive [get]
 
float Commonness [get]
 
List< InventoryItemItems = new List<InventoryItem>() [get]
 
- Properties inherited from Barotrauma.CharacterParams.SubParam
virtual string Name [get, set]
 
Dictionary< Identifier, SerializablePropertySerializableProperties [get]
 
ContentXElement Element [get, set]
 
List< SubParamSubParams = new List<SubParam>() [get, set]
 
CharacterParams Character [get]
 
- Properties inherited from Barotrauma.ISerializableEntity

Additional Inherited Members

- Protected Member Functions inherited from Barotrauma.CharacterParams.SubParam
ContentXElement CreateElement (string name, params object[] attrs)
 
bool RemoveSubParam< T > (T subParam, IList< T > collection=null)
 

Constructor & Destructor Documentation

◆ InventoryParams()

Barotrauma.CharacterParams.InventoryParams.InventoryParams ( ContentXElement element,
CharacterParams character )

Member Function Documentation

◆ AddItem()

void Barotrauma.CharacterParams.InventoryParams.AddItem ( string identifier = null)

◆ RemoveItem()

bool Barotrauma.CharacterParams.InventoryParams.RemoveItem ( InventoryItem item)

Property Documentation

◆ AccessibleWhenAlive

bool Barotrauma.CharacterParams.InventoryParams.AccessibleWhenAlive
get

◆ Commonness

float Barotrauma.CharacterParams.InventoryParams.Commonness
get

◆ Items

List<InventoryItem> Barotrauma.CharacterParams.InventoryParams.Items = new List<InventoryItem>()
get

◆ Name

override string Barotrauma.CharacterParams.InventoryParams.Name
get

◆ Slots

string Barotrauma.CharacterParams.InventoryParams.Slots
get

The documentation for this class was generated from the following file: