C# Class Dota2GSI.Nodes.Items

Class representing item information
Inheritance: Node
Mostrar archivo Open project: antonpup/Dota2GSI Class Usage Examples

Public Methods

Method Description
GetInventoryAt ( int index ) : Item

Gets the inventory item at the specified index

GetStashAt ( int index ) : Item

Gets the stash item at the specified index

InventoryContains ( string itemname ) : bool

Checks if item exists in the inventory

InventoryIndexOf ( string itemname ) : int

Gets index of the first occurence of the item in the inventory

StashContains ( string itemname ) : bool

Checks if item exists in the stash

StashIndexOf ( string itemname ) : int

Gets index of the first occurence of the item in the stash

Private Methods

Method Description
Items ( string json_data ) : System.Collections.Generic

Method Details

GetInventoryAt() public method

Gets the inventory item at the specified index
public GetInventoryAt ( int index ) : Item
index int The index
return Item

GetStashAt() public method

Gets the stash item at the specified index
public GetStashAt ( int index ) : Item
index int The index
return Item

InventoryContains() public method

Checks if item exists in the inventory
public InventoryContains ( string itemname ) : bool
itemname string The item name
return bool

InventoryIndexOf() public method

Gets index of the first occurence of the item in the inventory
public InventoryIndexOf ( string itemname ) : int
itemname string The item name
return int

StashContains() public method

Checks if item exists in the stash
public StashContains ( string itemname ) : bool
itemname string The item name
return bool

StashIndexOf() public method

Gets index of the first occurence of the item in the stash
public StashIndexOf ( string itemname ) : int
itemname string The item name
return int