Barotrauma Client Doc
|
Public Member Functions | |||
ItemSlot (Inventory inventory) | |||
bool | CanBePut (Item item, bool ignoreCondition=false) | ||
bool | CanBePut (ItemPrefab itemPrefab, float? condition=null, int? quality=null) | ||
int | HowManyCanBePut (ItemPrefab itemPrefab, int? maxStackSize=null, float? condition=null, bool ignoreItemsInSlot=false) | ||
| |||
void | Add (Item item) | ||
Item | RemoveItem () | ||
Removes one item from the slot More... | |||
void | RemoveItem (Item item) | ||
void | RemoveAllItems () | ||
Removes all items from the slot More... | |||
void | RemoveWhere (Func< Item, bool > predicate) | ||
bool | Any () | ||
bool | Empty () | ||
Item | First () | ||
Item | FirstOrDefault () | ||
Item | LastOrDefault () | ||
bool | Contains (Item item) | ||
Public Attributes | |
bool | HideIfEmpty |
Properties | |
IReadOnlyList< Item > | Items [get] |
Definition at line 17 of file BarotraumaShared/SharedSource/Items/Inventory.cs.
Barotrauma.Inventory.ItemSlot.ItemSlot | ( | Inventory | inventory | ) |
Definition at line 27 of file BarotraumaShared/SharedSource/Items/Inventory.cs.
void Barotrauma.Inventory.ItemSlot.Add | ( | Item | item | ) |
Definition at line 135 of file BarotraumaShared/SharedSource/Items/Inventory.cs.
bool Barotrauma.Inventory.ItemSlot.Any | ( | ) |
Definition at line 197 of file BarotraumaShared/SharedSource/Items/Inventory.cs.
bool Barotrauma.Inventory.ItemSlot.CanBePut | ( | Item | item, |
bool | ignoreCondition = false |
||
) |
Definition at line 32 of file BarotraumaShared/SharedSource/Items/Inventory.cs.
bool Barotrauma.Inventory.ItemSlot.CanBePut | ( | ItemPrefab | itemPrefab, |
float? | condition = null , |
||
int? | quality = null |
||
) |
Definition at line 61 of file BarotraumaShared/SharedSource/Items/Inventory.cs.
bool Barotrauma.Inventory.ItemSlot.Contains | ( | Item | item | ) |
Definition at line 222 of file BarotraumaShared/SharedSource/Items/Inventory.cs.
bool Barotrauma.Inventory.ItemSlot.Empty | ( | ) |
Definition at line 202 of file BarotraumaShared/SharedSource/Items/Inventory.cs.
Item Barotrauma.Inventory.ItemSlot.First | ( | ) |
Definition at line 207 of file BarotraumaShared/SharedSource/Items/Inventory.cs.
Item Barotrauma.Inventory.ItemSlot.FirstOrDefault | ( | ) |
Definition at line 212 of file BarotraumaShared/SharedSource/Items/Inventory.cs.
int Barotrauma.Inventory.ItemSlot.HowManyCanBePut | ( | ItemPrefab | itemPrefab, |
int? | maxStackSize = null , |
||
float? | condition = null , |
||
bool | ignoreItemsInSlot = false |
||
) |
maxStackSize | Defaults to ItemPrefab.MaxStackSize if null |
Definition at line 101 of file BarotraumaShared/SharedSource/Items/Inventory.cs.
Item Barotrauma.Inventory.ItemSlot.LastOrDefault | ( | ) |
Definition at line 217 of file BarotraumaShared/SharedSource/Items/Inventory.cs.
void Barotrauma.Inventory.ItemSlot.RemoveAllItems | ( | ) |
Removes all items from the slot
Definition at line 187 of file BarotraumaShared/SharedSource/Items/Inventory.cs.
Item Barotrauma.Inventory.ItemSlot.RemoveItem | ( | ) |
Removes one item from the slot
Definition at line 170 of file BarotraumaShared/SharedSource/Items/Inventory.cs.
void Barotrauma.Inventory.ItemSlot.RemoveItem | ( | Item | item | ) |
Definition at line 179 of file BarotraumaShared/SharedSource/Items/Inventory.cs.
void Barotrauma.Inventory.ItemSlot.RemoveWhere | ( | Func< Item, bool > | predicate | ) |
Definition at line 192 of file BarotraumaShared/SharedSource/Items/Inventory.cs.
bool Barotrauma.Inventory.ItemSlot.HideIfEmpty |
Definition at line 21 of file BarotraumaShared/SharedSource/Items/Inventory.cs.
|
get |
Definition at line 23 of file BarotraumaShared/SharedSource/Items/Inventory.cs.