Barotrauma Server 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

Definition at line 421 of file ItemPrefab.cs.

Constructor & Destructor Documentation

◆ SwappableItem()

Barotrauma.SwappableItem.SwappableItem ( ContentXElement  element)

Definition at line 445 of file ItemPrefab.cs.

Member Function Documentation

◆ GetPrice()

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

Definition at line 439 of file ItemPrefab.cs.

Member Data Documentation

◆ CanBeBought

readonly bool Barotrauma.SwappableItem.CanBeBought

Definition at line 425 of file ItemPrefab.cs.

◆ ConnectedItemsToSwap

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

Definition at line 435 of file ItemPrefab.cs.

◆ ReplacementOnUninstall

readonly Identifier Barotrauma.SwappableItem.ReplacementOnUninstall

Definition at line 427 of file ItemPrefab.cs.

◆ SchematicSprite

readonly Sprite Barotrauma.SwappableItem.SchematicSprite

Definition at line 437 of file ItemPrefab.cs.

◆ SpawnWithId

string Barotrauma.SwappableItem.SpawnWithId

Definition at line 429 of file ItemPrefab.cs.

◆ SwapIdentifier

string Barotrauma.SwappableItem.SwapIdentifier

Definition at line 431 of file ItemPrefab.cs.

◆ SwapOrigin

readonly Vector2 Barotrauma.SwappableItem.SwapOrigin

Definition at line 433 of file ItemPrefab.cs.

Property Documentation

◆ BasePrice

int Barotrauma.SwappableItem.BasePrice
get

Definition at line 423 of file ItemPrefab.cs.