C# Class SagaDB.Items.Inventory

Show file Open project: Willyham/SagaRO2

Public Properties

Property Type Description
inv Item>.Dictionary
invMaxSlots uint
storage Item>.Dictionary

Public Methods

Method Description
AddItem ( Item item ) : AddItemResult
AddItem ( Item item, byte &index, byte &amount ) : AddItemResult
AddItemStorage ( Item item ) : AddItemResult
AddItemStorage ( Item item, byte &index, byte &amount ) : AddItemResult
DeleteItem ( CONTAINER_TYPE container, byte index, int itemID, byte amount, byte &newAmount ) : DeleteItemResult
DeleteItem ( CONTAINER_TYPE container, int itemID, byte amount, byte &index, byte &newAmount ) : DeleteItemResult
EquipItem ( byte sourceIndex, byte destIndex, Item &item ) : EquipItemResult
GetEquipDyes ( ) : byte[]
GetEquipIDs ( ) : int[]
GetInventoryList ( ) : List
GetInventoryList ( ITEM_TYPE listType ) : List
GetItem ( CONTAINER_TYPE container, byte index ) : Item
GetItem ( CONTAINER_TYPE container, int itemID ) : Item
GetStorageList ( ) : List
HasFreeSpace ( ) : bool
HasFreeSpaceStorage ( ) : bool
Inventory ( ) : System
Inventory ( uint invMaxSlots ) : System
UnequipItem ( byte sourceIndex, byte &index, byte &amount ) : UnequipItemResult

Private Methods

Method Description
GetFreeInventoryIndex ( byte &index ) : bool
GetFreeStorageIndex ( byte &index ) : bool

Method Details

AddItem() public method

public AddItem ( Item item ) : AddItemResult
item Item
return AddItemResult

AddItem() public method

public AddItem ( Item item, byte &index, byte &amount ) : AddItemResult
item Item
index byte
amount byte
return AddItemResult

AddItemStorage() public method

public AddItemStorage ( Item item ) : AddItemResult
item Item
return AddItemResult

AddItemStorage() public method

public AddItemStorage ( Item item, byte &index, byte &amount ) : AddItemResult
item Item
index byte
amount byte
return AddItemResult

DeleteItem() public method

public DeleteItem ( CONTAINER_TYPE container, byte index, int itemID, byte amount, byte &newAmount ) : DeleteItemResult
container CONTAINER_TYPE
index byte
itemID int
amount byte
newAmount byte
return DeleteItemResult

DeleteItem() public method

public DeleteItem ( CONTAINER_TYPE container, int itemID, byte amount, byte &index, byte &newAmount ) : DeleteItemResult
container CONTAINER_TYPE
itemID int
amount byte
index byte
newAmount byte
return DeleteItemResult

EquipItem() public method

public EquipItem ( byte sourceIndex, byte destIndex, Item &item ) : EquipItemResult
sourceIndex byte
destIndex byte
item Item
return EquipItemResult

GetEquipDyes() public method

public GetEquipDyes ( ) : byte[]
return byte[]

GetEquipIDs() public method

public GetEquipIDs ( ) : int[]
return int[]

GetInventoryList() public method

public GetInventoryList ( ) : List
return List

GetInventoryList() public method

public GetInventoryList ( ITEM_TYPE listType ) : List
listType ITEM_TYPE
return List

GetItem() public method

public GetItem ( CONTAINER_TYPE container, byte index ) : Item
container CONTAINER_TYPE
index byte
return Item

GetItem() public method

public GetItem ( CONTAINER_TYPE container, int itemID ) : Item
container CONTAINER_TYPE
itemID int
return Item

GetStorageList() public method

public GetStorageList ( ) : List
return List

HasFreeSpace() public method

public HasFreeSpace ( ) : bool
return bool

HasFreeSpaceStorage() public method

public HasFreeSpaceStorage ( ) : bool
return bool

Inventory() public method

public Inventory ( ) : System
return System

Inventory() public method

public Inventory ( uint invMaxSlots ) : System
invMaxSlots uint
return System

UnequipItem() public method

public UnequipItem ( byte sourceIndex, byte &index, byte &amount ) : UnequipItemResult
sourceIndex byte
index byte
amount byte
return UnequipItemResult

Property Details

inv public property

public Dictionary inv
return Item>.Dictionary

invMaxSlots public property

public uint invMaxSlots
return uint

storage public property

public Dictionary storage
return Item>.Dictionary