C# Class Inventory, TestGame

Show file Open project: liuxq/TestGame Class Usage Examples

Public Methods

Method Description
ConsumeItem ( Item, item ) : void
EquiptItem ( Item item ) : void
OnUpdateItemList ( ) : void
UnEquipItem1 ( Item item ) : void
addAllItemsToInventory ( ) : void
addItemToInventory ( int id, UInt64 itemUUID, int value ) : GameObject
addItemToInventory ( int itemId, UInt64 itemUUID, int value, int itemIndex ) : GameObject
addItemToInventory ( int id, int value ) : GameObject
addItemToInventory ( int id ) : void
addItemToInventory ( int ignoreSlot, int itemID, int itemValue ) : void
addItemToInventoryStorage ( int itemID, int value ) : void
adjustInventorySize ( ) : void
changeInventoryPanelDesign ( Image image ) : void
characterSystem ( ) : bool
checkIfAllInventoryClosed ( ) : void
checkIfItemAllreadyExist ( int itemID, int itemValue ) : bool
closeInventory ( ) : void
deleteAllItems ( ) : void
deleteItem ( Item item ) : void
deleteItemByIndex ( Int32 index ) : void
deleteItemFromInventory ( Item item ) : void
deleteItemFromInventoryWithGameObject ( Item item ) : void
getFirstEmptyItemIndex ( ) : int
getItemGameObject ( Item item ) : GameObject
getItemGameObject ( int itemId ) : GameObject
getItemGameObjectByName ( Item item ) : GameObject
getItemList ( ) : List
getPositionOfItem ( Item item ) : int
getPrefabs ( ) : void
openInventory ( ) : void
setAsMain ( ) : void
setDefaultSettings ( ) : void
setImportantVariables ( ) : void
sortItems ( ) : void
stackableSettings ( ) : void
stackableSettings ( bool stackable, Vector3 posi ) : void
updateIconSize ( ) : void
updateIconSize ( int iconSize ) : void
updateItemIndex ( ) : void
updateItemList ( ) : void
updatePadding ( ) : void
updatePadding ( int spacingBetweenX, int spacingBetweenY ) : void
updateSlotAmount ( ) : void
updateSlotAmount ( int width, int height ) : void
updateSlotSize ( ) : void
updateSlotSize ( int slotSize ) : void

Private Methods

Method Description
Start ( ) : void
Update ( ) : void
menuItemCreateInventory ( ) : void
updateItemSize ( ) : void

Method Details

ConsumeItem() public method

public ConsumeItem ( Item, item ) : void
item Item,
return void

EquiptItem() public method

public EquiptItem ( Item item ) : void
item Item
return void

OnUpdateItemList() public method

public OnUpdateItemList ( ) : void
return void

UnEquipItem1() public method

public UnEquipItem1 ( Item item ) : void
item Item
return void

addAllItemsToInventory() public method

public addAllItemsToInventory ( ) : void
return void

addItemToInventory() public method

public addItemToInventory ( int id, UInt64 itemUUID, int value ) : GameObject
id int
itemUUID UInt64
value int
return GameObject

addItemToInventory() public method

public addItemToInventory ( int itemId, UInt64 itemUUID, int value, int itemIndex ) : GameObject
itemId int
itemUUID UInt64
value int
itemIndex int
return GameObject

addItemToInventory() public method

public addItemToInventory ( int id, int value ) : GameObject
id int
value int
return GameObject

addItemToInventory() public method

public addItemToInventory ( int id ) : void
id int
return void

addItemToInventory() public method

public addItemToInventory ( int ignoreSlot, int itemID, int itemValue ) : void
ignoreSlot int
itemID int
itemValue int
return void

addItemToInventoryStorage() public method

public addItemToInventoryStorage ( int itemID, int value ) : void
itemID int
value int
return void

adjustInventorySize() public method

public adjustInventorySize ( ) : void
return void

changeInventoryPanelDesign() public method

public changeInventoryPanelDesign ( Image image ) : void
image Image
return void

characterSystem() public method

public characterSystem ( ) : bool
return bool

checkIfAllInventoryClosed() public method

public checkIfAllInventoryClosed ( ) : void
return void

checkIfItemAllreadyExist() public method

public checkIfItemAllreadyExist ( int itemID, int itemValue ) : bool
itemID int
itemValue int
return bool

closeInventory() public method

public closeInventory ( ) : void
return void

deleteAllItems() public method

public deleteAllItems ( ) : void
return void

deleteItem() public method

public deleteItem ( Item item ) : void
item Item
return void

deleteItemByIndex() public method

public deleteItemByIndex ( Int32 index ) : void
index Int32
return void

deleteItemFromInventory() public method

public deleteItemFromInventory ( Item item ) : void
item Item
return void

deleteItemFromInventoryWithGameObject() public method

public deleteItemFromInventoryWithGameObject ( Item item ) : void
item Item
return void

getFirstEmptyItemIndex() public method

public getFirstEmptyItemIndex ( ) : int
return int

getItemGameObject() public method

public getItemGameObject ( Item item ) : GameObject
item Item
return GameObject

getItemGameObject() public method

public getItemGameObject ( int itemId ) : GameObject
itemId int
return GameObject

getItemGameObjectByName() public method

public getItemGameObjectByName ( Item item ) : GameObject
item Item
return GameObject

getItemList() public method

public getItemList ( ) : List
return List

getPositionOfItem() public method

public getPositionOfItem ( Item item ) : int
item Item
return int

getPrefabs() public method

public getPrefabs ( ) : void
return void

openInventory() public method

public openInventory ( ) : void
return void

setAsMain() public method

public setAsMain ( ) : void
return void

setDefaultSettings() public method

public setDefaultSettings ( ) : void
return void

setImportantVariables() public method

public setImportantVariables ( ) : void
return void

sortItems() public method

public sortItems ( ) : void
return void

stackableSettings() public method

public stackableSettings ( ) : void
return void

stackableSettings() public method

public stackableSettings ( bool stackable, Vector3 posi ) : void
stackable bool
posi Vector3
return void

updateIconSize() public method

public updateIconSize ( ) : void
return void

updateIconSize() public method

public updateIconSize ( int iconSize ) : void
iconSize int
return void

updateItemIndex() public method

public updateItemIndex ( ) : void
return void

updateItemList() public method

public updateItemList ( ) : void
return void

updatePadding() public method

public updatePadding ( ) : void
return void

updatePadding() public method

public updatePadding ( int spacingBetweenX, int spacingBetweenY ) : void
spacingBetweenX int
spacingBetweenY int
return void

updateSlotAmount() public method

public updateSlotAmount ( ) : void
return void

updateSlotAmount() public method

public updateSlotAmount ( int width, int height ) : void
width int
height int
return void

updateSlotSize() public method

public updateSlotSize ( ) : void
return void

updateSlotSize() public method

public updateSlotSize ( int slotSize ) : void
slotSize int
return void