Method | Description | |
---|---|---|
AddItem ( Item item ) : bool |
Adds an Item at a free spot to the backpack
|
|
AddItem ( Item item, int row, int column ) : void |
Adds an item to the backpack
|
|
Contains ( Item item ) : bool | ||
Contains ( uint itemID ) : bool |
Checks whether the inventory contains an item
|
|
FreeSpace ( Item item, int row, int column ) : bool | ||
HasFreeSpace ( Item item ) : System.Boolean | ||
InventoryGrid ( Mooege.Core.GS.Actors.Actor owner, int rows, int columns, int slot ) : System | ||
RemoveItem ( Item item ) : void |
Removes an item from the backpack
|
|
ResizeGrid ( int rows, int columns ) : void | ||
Reveal ( Player player ) : bool | ||
Unreveal ( Player player ) : bool |
Method | Description | |
---|---|---|
CollectOverlappingItems ( Item item, int row, int column ) : int |
Collects (counts) the items overlapping with the item about to be dropped. If there are none, drop item If there is exacly one, swap it with item (TODO) If there are more, item cannot be dropped
|
|
FindSlotForItem ( Item item ) : InventorySlot? |
Find an inventory slot with enough space for an item
|
|
GetItemInventorySize ( Item item ) : InventorySize |
public AddItem ( Item item, int row, int column ) : void | ||
item | Item | |
row | int | |
column | int | |
return | void |
public FreeSpace ( Item item, int row, int column ) : bool | ||
item | Item | |
row | int | |
column | int | |
return | bool |
public HasFreeSpace ( Item item ) : System.Boolean | ||
item | Item | |
return | System.Boolean |
public InventoryGrid ( Mooege.Core.GS.Actors.Actor owner, int rows, int columns, int slot ) : System | ||
owner | Mooege.Core.GS.Actors.Actor | |
rows | int | |
columns | int | |
slot | int | |
return | System |
public ResizeGrid ( int rows, int columns ) : void | ||
rows | int | |
columns | int | |
return | void |