Barotrauma Client Doc
Barotrauma.PurchasedItem Class Reference

Public Member Functions

 PurchasedItem (ItemPrefab itemPrefab, int quantity, int buyerCharacterInfoId)
 
 PurchasedItem (ItemPrefab itemPrefab, int quantity)
 
 PurchasedItem (ItemPrefab itemPrefab, int quantity, Client buyer)
 
 PurchasedItem (Identifier itemPrefabId, int quantity, Client buyer)
 
override string ToString ()
 

Public Attributes

readonly int BuyerCharacterInfoIdentifier
 
bool Delivered
 

Properties

ItemPrefab ItemPrefab [get]
 
Identifier ItemPrefabIdentifier [get]
 
int Quantity [get, set]
 
bool? IsStoreComponentEnabled [get, set]
 
bool DeliverImmediately [get, set]
 Should the items be given to the buyer immediately, as opposed to spawning them in the sub the next round? More...
 

Detailed Description

Constructor & Destructor Documentation

◆ PurchasedItem() [1/4]

Barotrauma.PurchasedItem.PurchasedItem ( ItemPrefab  itemPrefab,
int  quantity,
int  buyerCharacterInfoId 
)

◆ PurchasedItem() [2/4]

Barotrauma.PurchasedItem.PurchasedItem ( ItemPrefab  itemPrefab,
int  quantity 
)

◆ PurchasedItem() [3/4]

Barotrauma.PurchasedItem.PurchasedItem ( ItemPrefab  itemPrefab,
int  quantity,
Client  buyer 
)

◆ PurchasedItem() [4/4]

Barotrauma.PurchasedItem.PurchasedItem ( Identifier  itemPrefabId,
int  quantity,
Client  buyer 
)

Member Function Documentation

◆ ToString()

override string Barotrauma.PurchasedItem.ToString ( )

Member Data Documentation

◆ BuyerCharacterInfoIdentifier

readonly int Barotrauma.PurchasedItem.BuyerCharacterInfoIdentifier

◆ Delivered

bool Barotrauma.PurchasedItem.Delivered

Property Documentation

◆ DeliverImmediately

bool Barotrauma.PurchasedItem.DeliverImmediately
getset

Should the items be given to the buyer immediately, as opposed to spawning them in the sub the next round?

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

◆ IsStoreComponentEnabled

bool? Barotrauma.PurchasedItem.IsStoreComponentEnabled
getset

◆ ItemPrefab

ItemPrefab Barotrauma.PurchasedItem.ItemPrefab
get

◆ ItemPrefabIdentifier

Identifier Barotrauma.PurchasedItem.ItemPrefabIdentifier
get

◆ Quantity

int Barotrauma.PurchasedItem.Quantity
getset