C# Class CSharpTradeOffers.Trading.Inventory

Afficher le fichier Open project: FatherFoxxy/CSharpTradeOffers Class Usage Examples

Méthodes publiques

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

Méthode Description
BeingUsed ( CSharpTradeOffers.Trading.RgInventoryItem rgInventoryItem ) : bool

Method Details

AssetCount() public méthode

Returns the number of assets in the inventory.
public AssetCount ( ) : ulong
Résultat ulong

FindAvailableAsset() public méthode

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

FindFirstItem() public méthode

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

FindUnusedItems() public méthode

public FindUnusedItems ( string marketHashName ) : List
marketHashName string Name to search
Résultat List

Inventory() public méthode

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.
Résultat System

MarkAsset() public méthode

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
Résultat bool