C# Класс CSharpTradeOffers.Trading.Inventory

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AssetCount ( ) : ulong

Returns the number of assets in the inventory.

FindAvailableAsset ( long classId ) : CSharpTradeOffers.Trading.RgInventoryItem

Finds the first rgInventoryItem that is not in use.

FindFirstItem ( CEconAsset assetToFind ) : Item

Locates an Item in the inventory.

FindUnusedItems ( string marketHashName ) : List
Inventory ( ulong steamId, uint appId ) : System

Class constructor, automatically initializes inventory.

MarkAsset ( CEconAsset asset, bool inUse ) : bool

Locates asset in Items[classid].items and marks it's inUse bool according to the inUse argument.

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

Метод Описание
BeingUsed ( CSharpTradeOffers.Trading.RgInventoryItem rgInventoryItem ) : bool

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

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

Returns the number of assets in the inventory.
public AssetCount ( ) : ulong
Результат ulong

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

Finds the first rgInventoryItem that is not in use.
public FindAvailableAsset ( long classId ) : CSharpTradeOffers.Trading.RgInventoryItem
classId long ClassId of items to search.
Результат CSharpTradeOffers.Trading.RgInventoryItem

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

Locates an Item in the inventory.
public FindFirstItem ( CEconAsset assetToFind ) : Item
assetToFind CEconAsset Specifies search params.
Результат Item

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

public FindUnusedItems ( string marketHashName ) : List
marketHashName string Name to search
Результат List

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

Class constructor, automatically initializes inventory.
public Inventory ( ulong steamId, uint appId ) : System
steamId ulong steamId64 of the inventory.
appId uint App ID of the inventory.
Результат System

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

Locates asset in Items[classid].items and marks it's inUse bool according to the inUse argument.
public MarkAsset ( CEconAsset asset, bool inUse ) : bool
asset CEconAsset Asset to mark
inUse bool Value to set
Результат bool