Barotrauma Client Doc
|
Static Public Member Functions | |
static bool | HasUnlockedStoreItem (ItemPrefab prefab) |
static IReadOnlyCollection< Item > | FindAllItemsOnPlayerAndSub (Character character) |
static IEnumerable< Item > | FindAllSellableItems () |
static IEnumerable< Hull > | FindCargoRooms (IEnumerable< Submarine > subs) |
static IEnumerable< Hull > | FindCargoRooms (Submarine sub) |
static IEnumerable< Item > | FilterCargoCrates (IEnumerable< Item > items, Func< Item, bool > conditional=null) |
static IEnumerable< ItemContainer > | FindReusableCargoContainers (IEnumerable< Submarine > subs, IEnumerable< Hull > cargoRooms=null) |
static ItemContainer | GetOrCreateCargoContainerFor (ItemPrefab item, ISpatialEntity cargoRoomOrSpawnPoint, ref List< ItemContainer > availableContainers) |
static void | DeliverItemsToSub (IEnumerable< PurchasedItem > itemsToSpawn, Submarine sub, CargoManager cargoManager) |
static void | DeliverItemsToCharacter (IEnumerable< PurchasedItem > itemsToSpawn, Character character, CargoManager cargoManager) |
static Vector2 | GetCargoPos (Hull hull, ItemPrefab itemPrefab) |
Public Attributes | |
readonly NamedEvent< CargoManager > | OnItemsInBuyCrateChanged = new NamedEvent<CargoManager>() |
readonly NamedEvent< CargoManager > | OnItemsInSellCrateChanged = new NamedEvent<CargoManager>() |
readonly NamedEvent< CargoManager > | OnItemsInSellFromSubCrateChanged = new NamedEvent<CargoManager>() |
readonly NamedEvent< CargoManager > | OnPurchasedItemsChanged = new NamedEvent<CargoManager>() |
readonly NamedEvent< CargoManager > | OnSoldItemsChanged = new NamedEvent<CargoManager>() |
Static Public Attributes | |
const int | MaxQuantity = 100 |
Properties | |
Dictionary< Identifier, List< PurchasedItem > > | ItemsInBuyCrate = new Dictionary<Identifier, List<PurchasedItem>>() [get] |
Dictionary< Identifier, List< PurchasedItem > > | ItemsInSellCrate = new Dictionary<Identifier, List<PurchasedItem>>() [get] |
Dictionary< Identifier, List< PurchasedItem > > | ItemsInSellFromSubCrate = new Dictionary<Identifier, List<PurchasedItem>>() [get] |
Dictionary< Identifier, List< PurchasedItem > > | PurchasedItems = new Dictionary<Identifier, List<PurchasedItem>>() [get] |
Dictionary< Identifier, List< SoldItem > > | SoldItems = new Dictionary<Identifier, List<SoldItem>>() [get] |
Definition at line 99 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
Barotrauma.CargoManager.CargoManager | ( | CampaignMode | campaign | ) |
Definition at line 165 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
void Barotrauma.CargoManager.ClearItemsInBuyCrate | ( | ) |
Definition at line 236 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
void Barotrauma.CargoManager.ClearItemsInSellCrate | ( | ) |
Definition at line 242 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
void Barotrauma.CargoManager.ClearItemsInSellFromSubCrate | ( | ) |
Definition at line 248 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
void Barotrauma.CargoManager.ClearSoldItemsProjSpecific | ( | ) |
Definition at line 213 of file BarotraumaClient/ClientSource/GameSession/CargoManager.cs.
void Barotrauma.CargoManager.CreatePurchasedItems | ( | ) |
Definition at line 407 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
|
static |
Definition at line 651 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
|
static |
Definition at line 591 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
|
static |
|
static |
Definition at line 445 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
|
static |
Definition at line 456 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
|
static |
|
static |
PurchasedItem Barotrauma.CargoManager.GetBuyCrateItem | ( | Identifier | identifier, |
ItemPrefab | prefab | ||
) |
PurchasedItem Barotrauma.CargoManager.GetBuyCrateItem | ( | Location.StoreInfo | store, |
ItemPrefab | prefab | ||
) |
List<PurchasedItem> Barotrauma.CargoManager.GetBuyCrateItems | ( | Identifier | identifier, |
bool | create = false |
||
) |
List<PurchasedItem> Barotrauma.CargoManager.GetBuyCrateItems | ( | Location.StoreInfo | store, |
bool | create = false |
||
) |
Dictionary<ItemPrefab, int> Barotrauma.CargoManager.GetBuyValuesAtCurrentLocation | ( | Identifier | storeIdentifier, |
IEnumerable< ItemPrefab > | items | ||
) |
Definition at line 373 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
|
static |
Definition at line 714 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
|
static |
Definition at line 543 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
int Barotrauma.CargoManager.GetPurchasedItemCount | ( | Identifier | identifier, |
ItemPrefab | prefab | ||
) |
int Barotrauma.CargoManager.GetPurchasedItemCount | ( | Location.StoreInfo | store, |
ItemPrefab | prefab | ||
) |
List<PurchasedItem> Barotrauma.CargoManager.GetPurchasedItems | ( | Identifier | identifier, |
bool | create = false |
||
) |
List<PurchasedItem> Barotrauma.CargoManager.GetPurchasedItems | ( | Location.StoreInfo | store, |
bool | create = false |
||
) |
Definition at line 24 of file BarotraumaClient/ClientSource/GameSession/CargoManager.cs.
IEnumerable<Item> Barotrauma.CargoManager.GetSellableItemsFromSub | ( | ) |
Definition at line 422 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
PurchasedItem Barotrauma.CargoManager.GetSellCrateItem | ( | Identifier | identifier, |
ItemPrefab | prefab | ||
) |
PurchasedItem Barotrauma.CargoManager.GetSellCrateItem | ( | Location.StoreInfo | store, |
ItemPrefab | prefab | ||
) |
List<PurchasedItem> Barotrauma.CargoManager.GetSellCrateItems | ( | Identifier | identifier, |
bool | create = false |
||
) |
List<PurchasedItem> Barotrauma.CargoManager.GetSellCrateItems | ( | Location.StoreInfo | store, |
bool | create = false |
||
) |
Dictionary<ItemPrefab, int> Barotrauma.CargoManager.GetSellValuesAtCurrentLocation | ( | Identifier | storeIdentifier, |
IEnumerable< ItemPrefab > | items | ||
) |
Definition at line 390 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
List<SoldItem> Barotrauma.CargoManager.GetSoldItems | ( | Identifier | identifier, |
bool | create = false |
||
) |
List<SoldItem> Barotrauma.CargoManager.GetSoldItems | ( | Location.StoreInfo | store, |
bool | create = false |
||
) |
PurchasedItem Barotrauma.CargoManager.GetSubCrateItem | ( | Identifier | identifier, |
ItemPrefab | prefab | ||
) |
PurchasedItem Barotrauma.CargoManager.GetSubCrateItem | ( | Location.StoreInfo | store, |
ItemPrefab | prefab | ||
) |
List<PurchasedItem> Barotrauma.CargoManager.GetSubCrateItems | ( | Identifier | identifier, |
bool | create = false |
||
) |
List<PurchasedItem> Barotrauma.CargoManager.GetSubCrateItems | ( | Location.StoreInfo | store, |
bool | create = false |
||
) |
|
static |
Definition at line 170 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
void Barotrauma.CargoManager.InitPurchasedIDCards | ( | ) |
Definition at line 698 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
void Barotrauma.CargoManager.LoadPurchasedItems | ( | XElement | element | ) |
Definition at line 759 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
void Barotrauma.CargoManager.ModifyItemQuantityInBuyCrate | ( | Identifier | storeIdentifier, |
ItemPrefab | itemPrefab, | ||
int | changeInQuantity, | ||
Client | client = null |
||
) |
Definition at line 265 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
void Barotrauma.CargoManager.ModifyItemQuantityInSellCrate | ( | Identifier | storeIdentifier, |
ItemPrefab | itemPrefab, | ||
int | changeInQuantity | ||
) |
Definition at line 119 of file BarotraumaClient/ClientSource/GameSession/CargoManager.cs.
void Barotrauma.CargoManager.ModifyItemQuantityInSubSellCrate | ( | Identifier | storeIdentifier, |
ItemPrefab | itemPrefab, | ||
int | changeInQuantity, | ||
Client | client = null |
||
) |
Definition at line 282 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
void Barotrauma.CargoManager.PurchaseItems | ( | Identifier | storeIdentifier, |
List< PurchasedItem > | itemsToPurchase, | ||
bool | removeFromCrate, | ||
Client | client = null |
||
) |
Definition at line 299 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
void Barotrauma.CargoManager.SavePurchasedItems | ( | XElement | parentElement | ) |
Definition at line 740 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
void Barotrauma.CargoManager.SellItems | ( | Identifier | storeIdentifier, |
List< PurchasedItem > | itemsToSell, | ||
Store.StoreTab | sellingMode | ||
) |
Definition at line 136 of file BarotraumaClient/ClientSource/GameSession/CargoManager.cs.
void Barotrauma.CargoManager.SetItemsInBuyCrate | ( | Dictionary< Identifier, List< PurchasedItem >> | items | ) |
Definition at line 56 of file BarotraumaClient/ClientSource/GameSession/CargoManager.cs.
void Barotrauma.CargoManager.SetItemsInSubSellCrate | ( | Dictionary< Identifier, List< PurchasedItem >> | items | ) |
Definition at line 66 of file BarotraumaClient/ClientSource/GameSession/CargoManager.cs.
void Barotrauma.CargoManager.SetPurchasedItems | ( | Dictionary< Identifier, List< PurchasedItem >> | purchasedItems | ) |
Definition at line 254 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
void Barotrauma.CargoManager.SetSoldItems | ( | Dictionary< Identifier, List< SoldItem >> | items | ) |
Definition at line 76 of file BarotraumaClient/ClientSource/GameSession/CargoManager.cs.
|
static |
Definition at line 147 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
readonly NamedEvent<CargoManager> Barotrauma.CargoManager.OnItemsInBuyCrateChanged = new NamedEvent<CargoManager>() |
Definition at line 159 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
readonly NamedEvent<CargoManager> Barotrauma.CargoManager.OnItemsInSellCrateChanged = new NamedEvent<CargoManager>() |
Definition at line 160 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
readonly NamedEvent<CargoManager> Barotrauma.CargoManager.OnItemsInSellFromSubCrateChanged = new NamedEvent<CargoManager>() |
Definition at line 161 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
readonly NamedEvent<CargoManager> Barotrauma.CargoManager.OnPurchasedItemsChanged = new NamedEvent<CargoManager>() |
Definition at line 162 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
readonly NamedEvent<CargoManager> Barotrauma.CargoManager.OnSoldItemsChanged = new NamedEvent<CargoManager>() |
Definition at line 163 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
|
get |
Definition at line 149 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
|
get |
Definition at line 150 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
|
get |
Definition at line 151 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
|
get |
Definition at line 152 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.
|
get |
Definition at line 153 of file BarotraumaShared/SharedSource/GameSession/CargoManager.cs.