C# Class CSharpTradeOffers.Trading.Inventory

Mostrar archivo Open project: FatherFoxxy/CSharpTradeOffers Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
BeingUsed ( CSharpTradeOffers.Trading.RgInventoryItem rgInventoryItem ) : bool

Method Details

AssetCount() public method

Returns the number of assets in the inventory.
public AssetCount ( ) : ulong
return ulong

FindAvailableAsset() public method

Finds the first rgInventoryItem that is not in use.
public FindAvailableAsset ( long classId ) : CSharpTradeOffers.Trading.RgInventoryItem
classId long ClassId of items to search.
return CSharpTradeOffers.Trading.RgInventoryItem

FindFirstItem() public method

Locates an Item in the inventory.
public FindFirstItem ( CEconAsset assetToFind ) : Item
assetToFind CEconAsset Specifies search params.
return Item

FindUnusedItems() public method

public FindUnusedItems ( string marketHashName ) : List
marketHashName string Name to search
return List

Inventory() public method

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.
return System

MarkAsset() public method

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
return bool