Barotrauma Client Doc
Barotrauma.SwappableItem Class Reference

Public Member Functions

int GetPrice (Location location=null)
 
 SwappableItem (ContentXElement element)
 

Public Attributes

readonly bool CanBeBought
 
readonly Identifier ReplacementOnUninstall
 
string SpawnWithId
 
string SwapIdentifier
 
readonly Vector2 SwapOrigin
 
List<(Identifier requiredTag, Identifier swapTo)> ConnectedItemsToSwap = new List<(Identifier requiredTag, Identifier swapTo)>()
 
readonly Sprite SchematicSprite
 

Properties

int BasePrice [get]
 

Detailed Description

Constructor & Destructor Documentation

◆ SwappableItem()

Barotrauma.SwappableItem.SwappableItem ( ContentXElement  element)

Member Function Documentation

◆ GetPrice()

int Barotrauma.SwappableItem.GetPrice ( Location  location = null)

Member Data Documentation

◆ CanBeBought

readonly bool Barotrauma.SwappableItem.CanBeBought

◆ ConnectedItemsToSwap

List<(Identifier requiredTag, Identifier swapTo)> Barotrauma.SwappableItem.ConnectedItemsToSwap = new List<(Identifier requiredTag, Identifier swapTo)>()

◆ ReplacementOnUninstall

readonly Identifier Barotrauma.SwappableItem.ReplacementOnUninstall

◆ SchematicSprite

readonly Sprite Barotrauma.SwappableItem.SchematicSprite

◆ SpawnWithId

string Barotrauma.SwappableItem.SpawnWithId

◆ SwapIdentifier

string Barotrauma.SwappableItem.SwapIdentifier

◆ SwapOrigin

readonly Vector2 Barotrauma.SwappableItem.SwapOrigin

Property Documentation

◆ BasePrice

int Barotrauma.SwappableItem.BasePrice
get