2020-02-01 20:39:28 -05:00
|
|
|
package d2inventory
|
2020-01-26 00:39:13 -05:00
|
|
|
|
|
|
|
import "github.com/OpenDiablo2/OpenDiablo2/d2common/d2enum"
|
|
|
|
|
2020-06-30 17:04:41 -04:00
|
|
|
// InventoryItem defines the functionality of an inventory item
|
2020-01-26 00:39:13 -05:00
|
|
|
type InventoryItem interface {
|
|
|
|
// GetInventoryItemName returns the name of this inventory item
|
|
|
|
GetInventoryItemName() string
|
|
|
|
// GetInventoryItemType returns the type of item this is
|
|
|
|
GetInventoryItemType() d2enum.InventoryItemType
|
|
|
|
// GetInventoryGridSize returns the width/height grid size of this inventory item
|
|
|
|
GetInventoryGridSize() (int, int)
|
|
|
|
// Returns the item code
|
|
|
|
GetItemCode() string
|
|
|
|
// Serializes the object for transport
|
|
|
|
Serialize() []byte
|
|
|
|
}
|