C# Class Dota2GSI.Nodes.Items

Class representing item information
Inheritance: Node
Afficher le fichier Open project: antonpup/Dota2GSI Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
Items ( string json_data ) : System.Collections.Generic

Method Details

GetInventoryAt() public méthode

Gets the inventory item at the specified index
public GetInventoryAt ( int index ) : Item
index int The index
Résultat Item

GetStashAt() public méthode

Gets the stash item at the specified index
public GetStashAt ( int index ) : Item
index int The index
Résultat Item

InventoryContains() public méthode

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

InventoryIndexOf() public méthode

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

StashContains() public méthode

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

StashIndexOf() public méthode

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