Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
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 | |
Результат | void |
public FreeSpace ( Item item, int row, int column ) : bool | ||
item | Item | |
row | int | |
column | int | |
Результат | bool |
public HasFreeSpace ( Item item ) : System.Boolean | ||
item | Item | |
Результат | 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 | |
Результат | System |
public ResizeGrid ( int rows, int columns ) : void | ||
rows | int | |
columns | int | |
Результат | void |