Barotrauma Client Doc
Barotrauma.SoldItem Class Reference

Public Types

enum class  SellOrigin { Character , Submarine }
 

Public Member Functions

 SoldItem (ItemPrefab itemPrefab, ushort id, bool removed, byte sellerId, SellOrigin origin)
 
void SetItemId (ushort id)
 

Properties

ItemPrefab ItemPrefab [get]
 
ushort ID [get]
 
bool Removed [get, set]
 
byte SellerID [get]
 
SellOrigin Origin [get]
 

Detailed Description

Member Enumeration Documentation

◆ SellOrigin

Enumerator
Character 
Submarine 

Definition at line 73 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.

Constructor & Destructor Documentation

◆ SoldItem()

Barotrauma.SoldItem.SoldItem ( ItemPrefab  itemPrefab,
ushort  id,
bool  removed,
byte  sellerId,
SellOrigin  origin 
)

Member Function Documentation

◆ SetItemId()

void Barotrauma.SoldItem.SetItemId ( ushort  id)

Property Documentation

◆ ID

ushort Barotrauma.SoldItem.ID
get

◆ ItemPrefab

ItemPrefab Barotrauma.SoldItem.ItemPrefab
get

◆ Origin

SellOrigin Barotrauma.SoldItem.Origin
get

◆ Removed

bool Barotrauma.SoldItem.Removed
getset

◆ SellerID

byte Barotrauma.SoldItem.SellerID
get