C# Класс Dota2GSI.Nodes.Items

Class representing item information
Наследование: Node
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Items ( string json_data ) : System.Collections.Generic

Описание методов

GetInventoryAt() публичный Метод

Gets the inventory item at the specified index
public GetInventoryAt ( int index ) : Item
index int The index
Результат Item

GetStashAt() публичный Метод

Gets the stash item at the specified index
public GetStashAt ( int index ) : Item
index int The index
Результат Item

InventoryContains() публичный Метод

Checks if item exists in the inventory
public InventoryContains ( string itemname ) : bool
itemname string The item name
Результат bool

InventoryIndexOf() публичный Метод

Gets index of the first occurence of the item in the inventory
public InventoryIndexOf ( string itemname ) : int
itemname string The item name
Результат int

StashContains() публичный Метод

Checks if item exists in the stash
public StashContains ( string itemname ) : bool
itemname string The item name
Результат bool

StashIndexOf() публичный Метод

Gets index of the first occurence of the item in the stash
public StashIndexOf ( string itemname ) : int
itemname string The item name
Результат int