Skip to content

Search

文档

steam_inventory

Valve's ISteamInventory, through SteamInventory(): each method in snake case, nil without Steam. See Valve's Steamworks documentation for what each does.

本页内容

Valve's ISteamInventory, through SteamInventory(): each method in snake case, nil without Steam. See Valve's Steamworks documentation for what each does.

36 functions, 0 constants. Scripts reach it as steam_inventory::.

Functions

Argument kinds are the script values a call passes: node is a node handle, any a table or value of any kind, fn a callback.

function acts on what it does
add_promo_item(int) -> steam_inventory::AddPromoItem? — Valve's ISteamInventory::AddPromoItem.
add_promo_items([int]) -> steam_inventory::AddPromoItems? — Valve's ISteamInventory::AddPromoItems.
check_result_steam_id(int, int) -> bool? — Valve's ISteamInventory::CheckResultSteamID.
consume_item(int, int) -> steam_inventory::ConsumeItem? — Valve's ISteamInventory::ConsumeItem.
deserialize_result([int], bool) -> steam_inventory::DeserializeResult? — Valve's ISteamInventory::DeserializeResult.
destroy_result(int) — Valve's ISteamInventory::DestroyResult.
exchange_items([int], [int], [int], [int]) -> steam_inventory::ExchangeItems? — Valve's ISteamInventory::ExchangeItems.
generate_items([int], [int]) -> steam_inventory::GenerateItems? — Valve's ISteamInventory::GenerateItems.
get_all_items() -> steam_inventory::GetAllItems? — Valve's ISteamInventory::GetAllItems.
get_eligible_promo_item_definition_ids(int) -> steam_inventory::GetEligiblePromoItemDefinitionIDs? — Valve's ISteamInventory::GetEligiblePromoItemDefinitionIDs.
get_item_definition_ids() -> steam_inventory::GetItemDefinitionIDs? — Valve's ISteamInventory::GetItemDefinitionIDs.
get_item_definition_property(int, str?) -> steam_inventory::GetItemDefinitionProperty? — Valve's ISteamInventory::GetItemDefinitionProperty.
get_item_price(int) -> steam_inventory::GetItemPrice? — Valve's ISteamInventory::GetItemPrice.
get_items_by_id([int]) -> steam_inventory::GetItemsByID? — Valve's ISteamInventory::GetItemsByID.
get_num_items_with_prices() -> int? — Valve's ISteamInventory::GetNumItemsWithPrices.
get_result_item_property(int, int, str?) -> steam_inventory::GetResultItemProperty? — Valve's ISteamInventory::GetResultItemProperty.
get_result_items(int) -> steam_inventory::GetResultItems? — Valve's ISteamInventory::GetResultItems.
get_result_status(int) -> int? — Valve's ISteamInventory::GetResultStatus.
get_result_timestamp(int) -> int? — Valve's ISteamInventory::GetResultTimestamp.
grant_promo_items() -> steam_inventory::GrantPromoItems? — Valve's ISteamInventory::GrantPromoItems.
inspect_item(str?) -> steam_inventory::InspectItem? — Valve's ISteamInventory::InspectItem.
load_item_definitions() -> bool? — Valve's ISteamInventory::LoadItemDefinitions.
remove_property(int, int, str?) -> bool? — Valve's ISteamInventory::RemoveProperty.
request_eligible_promo_item_definitions_ids(int) -> int — Valve's ISteamInventory::RequestEligiblePromoItemDefinitionsIDs. Returns the id whose task::wait answer is steam::EVENT_STEAM_INVENTORY_ELIGIBLE_PROMO_ITEM_DEF_IDS with SteamInventoryEligiblePromoItemDefIDs_t's fields and failed, or unsupported without Steam.
request_prices() -> int — Valve's ISteamInventory::RequestPrices. Returns the id whose task::wait answer is steam::EVENT_STEAM_INVENTORY_REQUEST_PRICES_RESULT with SteamInventoryRequestPricesResult_t's fields and failed, or unsupported without Steam.
send_item_drop_heartbeat() — Valve's ISteamInventory::SendItemDropHeartbeat.
set_property_bool(int, int, str?, bool) -> bool? — Valve's ISteamInventory::SetProperty.
set_property_float(int, int, str?, float) -> bool? — Valve's ISteamInventory::SetProperty.
set_property_int64(int, int, str?, int) -> bool? — Valve's ISteamInventory::SetProperty.
set_property_string(int, int, str?, str?) -> bool? — Valve's ISteamInventory::SetProperty.
start_purchase([int], [int]) -> int — Valve's ISteamInventory::StartPurchase. Returns the id whose task::wait answer is steam::EVENT_STEAM_INVENTORY_START_PURCHASE_RESULT with SteamInventoryStartPurchaseResult_t's fields and failed, or unsupported without Steam.
start_update_properties() -> int? — Valve's ISteamInventory::StartUpdateProperties.
submit_update_properties(int) -> steam_inventory::SubmitUpdateProperties? — Valve's ISteamInventory::SubmitUpdateProperties.
trade_items(int, [int], [int], [int], [int]) -> steam_inventory::TradeItems? — Valve's ISteamInventory::TradeItems.
transfer_item_quantity(int, int, int) -> steam_inventory::TransferItemQuantity? — Valve's ISteamInventory::TransferItemQuantity.
trigger_item_drop(int) -> steam_inventory::TriggerItemDrop? — Valve's ISteamInventory::TriggerItemDrop.

确定吗?