C# Class Steamworks.SteamUGC

Afficher le fichier Open project: rlabrecque/Steamworks.NET Class Usage Examples

Méthodes publiques

Méthode Description
AddExcludedTag ( UGCQueryHandle_t handle, string pTagName ) : bool
AddItemKeyValueTag ( UGCUpdateHandle_t handle, string pchKey, string pchValue ) : bool

add new key-value tags for the item. Note that there can be multiple values for a tag.

AddItemPreviewFile ( UGCUpdateHandle_t handle, string pszPreviewFile, EItemPreviewType type ) : bool

add preview file for this item. pszPreviewFile points to local file, which must be under 1MB in size

AddItemPreviewVideo ( UGCUpdateHandle_t handle, string pszVideoID ) : bool

add preview video for this item

AddItemToFavorites ( AppId_t nAppId, PublishedFileId_t nPublishedFileID ) : SteamAPICall_t
AddRequiredKeyValueTag ( UGCQueryHandle_t handle, string pKey, string pValue ) : bool
AddRequiredTag ( UGCQueryHandle_t handle, string pTagName ) : bool

Options to set for querying UGC

BInitWorkshopForGameServer ( DepotId_t unWorkshopDepotID, string pszFolder ) : bool

game servers can set a specific workshop folder before issuing any UGC commands.

This is helpful if you want to support multiple game servers running out of the same install folder

CreateItem ( AppId_t nConsumerAppId, EWorkshopFileType eFileType ) : SteamAPICall_t

Steam Workshop Creator API

create new item for this app with no content attached yet

CreateQueryAllUGCRequest ( EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage ) : UGCQueryHandle_t

Query for all matching UGC. Creator app id or consumer app id must be valid and be set to the current running app. unPage should start at 1.

CreateQueryUGCDetailsRequest ( PublishedFileId_t pvecPublishedFileID, uint unNumPublishedFileIDs ) : UGCQueryHandle_t

Query for the details of the given published file ids (the RequestUGCDetails call is deprecated and replaced with this)

CreateQueryUserUGCRequest ( AccountID_t unAccountID, EUserUGCList eListType, EUGCMatchingUGCType eMatchingUGCType, EUserUGCListSortOrder eSortOrder, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage ) : UGCQueryHandle_t

Query UGC associated with a user. Creator app id or consumer app id must be valid and be set to the current running app. unPage should start at 1.

DownloadItem ( PublishedFileId_t nPublishedFileID, bool bHighPriority ) : bool

download new or update already installed item. If function returns true, wait for DownloadItemResult_t. If the item is already installed,

then files on disk should not be used until callback received. If item is not subscribed to, it will be cached for some time.

If bHighPriority is set, any other item download will be suspended and this item downloaded ASAP.

GetItemDownloadInfo ( PublishedFileId_t nPublishedFileID, ulong &punBytesDownloaded, ulong &punBytesTotal ) : bool

get info about pending update for items that have k_EItemStateNeedsUpdate set. punBytesTotal will be valid after download started once

GetItemInstallInfo ( PublishedFileId_t nPublishedFileID, ulong &punSizeOnDisk, string &pchFolder, uint cchFolderSize, uint &punTimeStamp ) : bool

get info about currently installed content on disc for items that have k_EItemStateInstalled set

if k_EItemStateLegacyItem is set, pchFolder contains the path to the legacy file itself (not a folder)

GetItemState ( PublishedFileId_t nPublishedFileID ) : uint

get EItemState flags about item on this client

GetItemUpdateProgress ( UGCUpdateHandle_t handle, ulong &punBytesProcessed, ulong &punBytesTotal ) : EItemUpdateStatus
GetNumSubscribedItems ( ) : uint

number of subscribed items

GetQueryUGCAdditionalPreview ( UGCQueryHandle_t handle, uint index, uint previewIndex, string &pchURLOrVideoID, uint cchURLSize, string &pchOriginalFileName, uint cchOriginalFileNameSize, EItemPreviewType &pPreviewType ) : bool
GetQueryUGCChildren ( UGCQueryHandle_t handle, uint index, PublishedFileId_t pvecPublishedFileID, uint cMaxEntries ) : bool
GetQueryUGCKeyValueTag ( UGCQueryHandle_t handle, uint index, uint keyValueTagIndex, string &pchKey, uint cchKeySize, string &pchValue, uint cchValueSize ) : bool
GetQueryUGCMetadata ( UGCQueryHandle_t handle, uint index, string &pchMetadata, uint cchMetadatasize ) : bool
GetQueryUGCNumAdditionalPreviews ( UGCQueryHandle_t handle, uint index ) : uint
GetQueryUGCNumKeyValueTags ( UGCQueryHandle_t handle, uint index ) : uint
GetQueryUGCPreviewURL ( UGCQueryHandle_t handle, uint index, string &pchURL, uint cchURLSize ) : bool
GetQueryUGCResult ( UGCQueryHandle_t handle, uint index, SteamUGCDetails_t &pDetails ) : bool

Retrieve an individual result after receiving the callback for querying UGC

GetQueryUGCStatistic ( UGCQueryHandle_t handle, uint index, EItemStatistic eStatType, ulong &pStatValue ) : bool
GetSubscribedItems ( PublishedFileId_t pvecPublishedFileID, uint cMaxEntries ) : uint

all subscribed item PublishFileIDs

GetUserItemVote ( PublishedFileId_t nPublishedFileID ) : SteamAPICall_t
ReleaseQueryUGCRequest ( UGCQueryHandle_t handle ) : bool

Release the request to free up memory, after retrieving results

RemoveItemFromFavorites ( AppId_t nAppId, PublishedFileId_t nPublishedFileID ) : SteamAPICall_t
RemoveItemKeyValueTags ( UGCUpdateHandle_t handle, string pchKey ) : bool

remove any existing key-value tags with the specified key

RemoveItemPreview ( UGCUpdateHandle_t handle, uint index ) : bool

remove a preview by index starting at 0 (previews are sorted)

RequestUGCDetails ( PublishedFileId_t nPublishedFileID, uint unMaxAgeSeconds ) : SteamAPICall_t

DEPRECATED - Use CreateQueryUGCDetailsRequest call above instead!

SendQueryUGCRequest ( UGCQueryHandle_t handle ) : SteamAPICall_t

Send the query to Steam

SetAllowCachedResponse ( UGCQueryHandle_t handle, uint unMaxAgeSeconds ) : bool
SetCloudFileNameFilter ( UGCQueryHandle_t handle, string pMatchCloudFileName ) : bool

Options only for querying user UGC

SetItemContent ( UGCUpdateHandle_t handle, string pszContentFolder ) : bool

update item content from this local folder

SetItemDescription ( UGCUpdateHandle_t handle, string pchDescription ) : bool

change the description of an UGC item

SetItemMetadata ( UGCUpdateHandle_t handle, string pchMetaData ) : bool

change the metadata of an UGC item (max = k_cchDeveloperMetadataMax)

SetItemPreview ( UGCUpdateHandle_t handle, string pszPreviewFile ) : bool

change preview image file for this item. pszPreviewFile points to local image file, which must be under 1MB in size

SetItemTags ( UGCUpdateHandle_t updateHandle, System pTags ) : bool

change the tags of an UGC item

SetItemTitle ( UGCUpdateHandle_t handle, string pchTitle ) : bool

change the title of an UGC item

SetItemUpdateLanguage ( UGCUpdateHandle_t handle, string pchLanguage ) : bool

specify the language of the title or description that will be set

SetItemVisibility ( UGCUpdateHandle_t handle, ERemoteStoragePublishedFileVisibility eVisibility ) : bool

change the visibility of an UGC item

SetLanguage ( UGCQueryHandle_t handle, string pchLanguage ) : bool
SetMatchAnyTag ( UGCQueryHandle_t handle, bool bMatchAnyTag ) : bool

Options only for querying all UGC

SetRankedByTrendDays ( UGCQueryHandle_t handle, uint unDays ) : bool
SetReturnAdditionalPreviews ( UGCQueryHandle_t handle, bool bReturnAdditionalPreviews ) : bool
SetReturnChildren ( UGCQueryHandle_t handle, bool bReturnChildren ) : bool
SetReturnKeyValueTags ( UGCQueryHandle_t handle, bool bReturnKeyValueTags ) : bool
SetReturnLongDescription ( UGCQueryHandle_t handle, bool bReturnLongDescription ) : bool
SetReturnMetadata ( UGCQueryHandle_t handle, bool bReturnMetadata ) : bool
SetReturnOnlyIDs ( UGCQueryHandle_t handle, bool bReturnOnlyIDs ) : bool
SetReturnTotalOnly ( UGCQueryHandle_t handle, bool bReturnTotalOnly ) : bool
SetSearchText ( UGCQueryHandle_t handle, string pSearchText ) : bool
SetUserItemVote ( PublishedFileId_t nPublishedFileID, bool bVoteUp ) : SteamAPICall_t

Steam Workshop Consumer API

StartItemUpdate ( AppId_t nConsumerAppId, PublishedFileId_t nPublishedFileID ) : UGCUpdateHandle_t

start an UGC item update. Set changed properties before commiting update with CommitItemUpdate()

StartPlaytimeTracking ( PublishedFileId_t pvecPublishedFileID, uint unNumPublishedFileIDs ) : SteamAPICall_t

usage tracking

StopPlaytimeTracking ( PublishedFileId_t pvecPublishedFileID, uint unNumPublishedFileIDs ) : SteamAPICall_t
StopPlaytimeTrackingForAllItems ( ) : SteamAPICall_t
SubmitItemUpdate ( UGCUpdateHandle_t handle, string pchChangeNote ) : SteamAPICall_t

commit update process started with StartItemUpdate()

SubscribeItem ( PublishedFileId_t nPublishedFileID ) : SteamAPICall_t

subscribe to this item, will be installed ASAP

SuspendDownloads ( bool bSuspend ) : void

SuspendDownloads( true ) will suspend all workshop downloads until SuspendDownloads( false ) is called or the game ends

UnsubscribeItem ( PublishedFileId_t nPublishedFileID ) : SteamAPICall_t

unsubscribe from this item, will be uninstalled after game quits

UpdateItemPreviewFile ( UGCUpdateHandle_t handle, uint index, string pszPreviewFile ) : bool

updates an existing preview file for this item. pszPreviewFile points to local file, which must be under 1MB in size

UpdateItemPreviewVideo ( UGCUpdateHandle_t handle, uint index, string pszVideoID ) : bool

updates an existing preview video for this item

Method Details

AddExcludedTag() public static méthode

public static AddExcludedTag ( UGCQueryHandle_t handle, string pTagName ) : bool
handle UGCQueryHandle_t
pTagName string
Résultat bool

AddItemKeyValueTag() public static méthode

add new key-value tags for the item. Note that there can be multiple values for a tag.

public static AddItemKeyValueTag ( UGCUpdateHandle_t handle, string pchKey, string pchValue ) : bool
handle UGCUpdateHandle_t
pchKey string
pchValue string
Résultat bool

AddItemPreviewFile() public static méthode

add preview file for this item. pszPreviewFile points to local file, which must be under 1MB in size

public static AddItemPreviewFile ( UGCUpdateHandle_t handle, string pszPreviewFile, EItemPreviewType type ) : bool
handle UGCUpdateHandle_t
pszPreviewFile string
type EItemPreviewType
Résultat bool

AddItemPreviewVideo() public static méthode

add preview video for this item

public static AddItemPreviewVideo ( UGCUpdateHandle_t handle, string pszVideoID ) : bool
handle UGCUpdateHandle_t
pszVideoID string
Résultat bool

AddItemToFavorites() public static méthode

public static AddItemToFavorites ( AppId_t nAppId, PublishedFileId_t nPublishedFileID ) : SteamAPICall_t
nAppId AppId_t
nPublishedFileID PublishedFileId_t
Résultat SteamAPICall_t

AddRequiredKeyValueTag() public static méthode

public static AddRequiredKeyValueTag ( UGCQueryHandle_t handle, string pKey, string pValue ) : bool
handle UGCQueryHandle_t
pKey string
pValue string
Résultat bool

AddRequiredTag() public static méthode

Options to set for querying UGC

public static AddRequiredTag ( UGCQueryHandle_t handle, string pTagName ) : bool
handle UGCQueryHandle_t
pTagName string
Résultat bool

BInitWorkshopForGameServer() public static méthode

game servers can set a specific workshop folder before issuing any UGC commands.

This is helpful if you want to support multiple game servers running out of the same install folder

public static BInitWorkshopForGameServer ( DepotId_t unWorkshopDepotID, string pszFolder ) : bool
unWorkshopDepotID DepotId_t
pszFolder string
Résultat bool

CreateItem() public static méthode

Steam Workshop Creator API

create new item for this app with no content attached yet

public static CreateItem ( AppId_t nConsumerAppId, EWorkshopFileType eFileType ) : SteamAPICall_t
nConsumerAppId AppId_t
eFileType EWorkshopFileType
Résultat SteamAPICall_t

CreateQueryAllUGCRequest() public static méthode

Query for all matching UGC. Creator app id or consumer app id must be valid and be set to the current running app. unPage should start at 1.

public static CreateQueryAllUGCRequest ( EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage ) : UGCQueryHandle_t
eQueryType EUGCQuery
eMatchingeMatchingUGCTypeFileType EUGCMatchingUGCType
nCreatorAppID AppId_t
nConsumerAppID AppId_t
unPage uint
Résultat UGCQueryHandle_t

CreateQueryUGCDetailsRequest() public static méthode

Query for the details of the given published file ids (the RequestUGCDetails call is deprecated and replaced with this)

public static CreateQueryUGCDetailsRequest ( PublishedFileId_t pvecPublishedFileID, uint unNumPublishedFileIDs ) : UGCQueryHandle_t
pvecPublishedFileID PublishedFileId_t
unNumPublishedFileIDs uint
Résultat UGCQueryHandle_t

CreateQueryUserUGCRequest() public static méthode

Query UGC associated with a user. Creator app id or consumer app id must be valid and be set to the current running app. unPage should start at 1.

public static CreateQueryUserUGCRequest ( AccountID_t unAccountID, EUserUGCList eListType, EUGCMatchingUGCType eMatchingUGCType, EUserUGCListSortOrder eSortOrder, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage ) : UGCQueryHandle_t
unAccountID AccountID_t
eListType EUserUGCList
eMatchingUGCType EUGCMatchingUGCType
eSortOrder EUserUGCListSortOrder
nCreatorAppID AppId_t
nConsumerAppID AppId_t
unPage uint
Résultat UGCQueryHandle_t

DownloadItem() public static méthode

download new or update already installed item. If function returns true, wait for DownloadItemResult_t. If the item is already installed,

then files on disk should not be used until callback received. If item is not subscribed to, it will be cached for some time.

If bHighPriority is set, any other item download will be suspended and this item downloaded ASAP.

public static DownloadItem ( PublishedFileId_t nPublishedFileID, bool bHighPriority ) : bool
nPublishedFileID PublishedFileId_t
bHighPriority bool
Résultat bool

GetItemDownloadInfo() public static méthode

get info about pending update for items that have k_EItemStateNeedsUpdate set. punBytesTotal will be valid after download started once

public static GetItemDownloadInfo ( PublishedFileId_t nPublishedFileID, ulong &punBytesDownloaded, ulong &punBytesTotal ) : bool
nPublishedFileID PublishedFileId_t
punBytesDownloaded ulong
punBytesTotal ulong
Résultat bool

GetItemInstallInfo() public static méthode

get info about currently installed content on disc for items that have k_EItemStateInstalled set

if k_EItemStateLegacyItem is set, pchFolder contains the path to the legacy file itself (not a folder)

public static GetItemInstallInfo ( PublishedFileId_t nPublishedFileID, ulong &punSizeOnDisk, string &pchFolder, uint cchFolderSize, uint &punTimeStamp ) : bool
nPublishedFileID PublishedFileId_t
punSizeOnDisk ulong
pchFolder string
cchFolderSize uint
punTimeStamp uint
Résultat bool

GetItemState() public static méthode

get EItemState flags about item on this client

public static GetItemState ( PublishedFileId_t nPublishedFileID ) : uint
nPublishedFileID PublishedFileId_t
Résultat uint

GetItemUpdateProgress() public static méthode

public static GetItemUpdateProgress ( UGCUpdateHandle_t handle, ulong &punBytesProcessed, ulong &punBytesTotal ) : EItemUpdateStatus
handle UGCUpdateHandle_t
punBytesProcessed ulong
punBytesTotal ulong
Résultat EItemUpdateStatus

GetNumSubscribedItems() public static méthode

number of subscribed items

public static GetNumSubscribedItems ( ) : uint
Résultat uint

GetQueryUGCAdditionalPreview() public static méthode

public static GetQueryUGCAdditionalPreview ( UGCQueryHandle_t handle, uint index, uint previewIndex, string &pchURLOrVideoID, uint cchURLSize, string &pchOriginalFileName, uint cchOriginalFileNameSize, EItemPreviewType &pPreviewType ) : bool
handle UGCQueryHandle_t
index uint
previewIndex uint
pchURLOrVideoID string
cchURLSize uint
pchOriginalFileName string
cchOriginalFileNameSize uint
pPreviewType EItemPreviewType
Résultat bool

GetQueryUGCChildren() public static méthode

public static GetQueryUGCChildren ( UGCQueryHandle_t handle, uint index, PublishedFileId_t pvecPublishedFileID, uint cMaxEntries ) : bool
handle UGCQueryHandle_t
index uint
pvecPublishedFileID PublishedFileId_t
cMaxEntries uint
Résultat bool

GetQueryUGCKeyValueTag() public static méthode

public static GetQueryUGCKeyValueTag ( UGCQueryHandle_t handle, uint index, uint keyValueTagIndex, string &pchKey, uint cchKeySize, string &pchValue, uint cchValueSize ) : bool
handle UGCQueryHandle_t
index uint
keyValueTagIndex uint
pchKey string
cchKeySize uint
pchValue string
cchValueSize uint
Résultat bool

GetQueryUGCMetadata() public static méthode

public static GetQueryUGCMetadata ( UGCQueryHandle_t handle, uint index, string &pchMetadata, uint cchMetadatasize ) : bool
handle UGCQueryHandle_t
index uint
pchMetadata string
cchMetadatasize uint
Résultat bool

GetQueryUGCNumAdditionalPreviews() public static méthode

public static GetQueryUGCNumAdditionalPreviews ( UGCQueryHandle_t handle, uint index ) : uint
handle UGCQueryHandle_t
index uint
Résultat uint

GetQueryUGCNumKeyValueTags() public static méthode

public static GetQueryUGCNumKeyValueTags ( UGCQueryHandle_t handle, uint index ) : uint
handle UGCQueryHandle_t
index uint
Résultat uint

GetQueryUGCPreviewURL() public static méthode

public static GetQueryUGCPreviewURL ( UGCQueryHandle_t handle, uint index, string &pchURL, uint cchURLSize ) : bool
handle UGCQueryHandle_t
index uint
pchURL string
cchURLSize uint
Résultat bool

GetQueryUGCResult() public static méthode

Retrieve an individual result after receiving the callback for querying UGC

public static GetQueryUGCResult ( UGCQueryHandle_t handle, uint index, SteamUGCDetails_t &pDetails ) : bool
handle UGCQueryHandle_t
index uint
pDetails SteamUGCDetails_t
Résultat bool

GetQueryUGCStatistic() public static méthode

public static GetQueryUGCStatistic ( UGCQueryHandle_t handle, uint index, EItemStatistic eStatType, ulong &pStatValue ) : bool
handle UGCQueryHandle_t
index uint
eStatType EItemStatistic
pStatValue ulong
Résultat bool

GetSubscribedItems() public static méthode

all subscribed item PublishFileIDs

public static GetSubscribedItems ( PublishedFileId_t pvecPublishedFileID, uint cMaxEntries ) : uint
pvecPublishedFileID PublishedFileId_t
cMaxEntries uint
Résultat uint

GetUserItemVote() public static méthode

public static GetUserItemVote ( PublishedFileId_t nPublishedFileID ) : SteamAPICall_t
nPublishedFileID PublishedFileId_t
Résultat SteamAPICall_t

ReleaseQueryUGCRequest() public static méthode

Release the request to free up memory, after retrieving results

public static ReleaseQueryUGCRequest ( UGCQueryHandle_t handle ) : bool
handle UGCQueryHandle_t
Résultat bool

RemoveItemFromFavorites() public static méthode

public static RemoveItemFromFavorites ( AppId_t nAppId, PublishedFileId_t nPublishedFileID ) : SteamAPICall_t
nAppId AppId_t
nPublishedFileID PublishedFileId_t
Résultat SteamAPICall_t

RemoveItemKeyValueTags() public static méthode

remove any existing key-value tags with the specified key

public static RemoveItemKeyValueTags ( UGCUpdateHandle_t handle, string pchKey ) : bool
handle UGCUpdateHandle_t
pchKey string
Résultat bool

RemoveItemPreview() public static méthode

remove a preview by index starting at 0 (previews are sorted)

public static RemoveItemPreview ( UGCUpdateHandle_t handle, uint index ) : bool
handle UGCUpdateHandle_t
index uint
Résultat bool

RequestUGCDetails() public static méthode

DEPRECATED - Use CreateQueryUGCDetailsRequest call above instead!

public static RequestUGCDetails ( PublishedFileId_t nPublishedFileID, uint unMaxAgeSeconds ) : SteamAPICall_t
nPublishedFileID PublishedFileId_t
unMaxAgeSeconds uint
Résultat SteamAPICall_t

SendQueryUGCRequest() public static méthode

Send the query to Steam

public static SendQueryUGCRequest ( UGCQueryHandle_t handle ) : SteamAPICall_t
handle UGCQueryHandle_t
Résultat SteamAPICall_t

SetAllowCachedResponse() public static méthode

public static SetAllowCachedResponse ( UGCQueryHandle_t handle, uint unMaxAgeSeconds ) : bool
handle UGCQueryHandle_t
unMaxAgeSeconds uint
Résultat bool

SetCloudFileNameFilter() public static méthode

Options only for querying user UGC

public static SetCloudFileNameFilter ( UGCQueryHandle_t handle, string pMatchCloudFileName ) : bool
handle UGCQueryHandle_t
pMatchCloudFileName string
Résultat bool

SetItemContent() public static méthode

update item content from this local folder

public static SetItemContent ( UGCUpdateHandle_t handle, string pszContentFolder ) : bool
handle UGCUpdateHandle_t
pszContentFolder string
Résultat bool

SetItemDescription() public static méthode

change the description of an UGC item

public static SetItemDescription ( UGCUpdateHandle_t handle, string pchDescription ) : bool
handle UGCUpdateHandle_t
pchDescription string
Résultat bool

SetItemMetadata() public static méthode

change the metadata of an UGC item (max = k_cchDeveloperMetadataMax)

public static SetItemMetadata ( UGCUpdateHandle_t handle, string pchMetaData ) : bool
handle UGCUpdateHandle_t
pchMetaData string
Résultat bool

SetItemPreview() public static méthode

change preview image file for this item. pszPreviewFile points to local image file, which must be under 1MB in size

public static SetItemPreview ( UGCUpdateHandle_t handle, string pszPreviewFile ) : bool
handle UGCUpdateHandle_t
pszPreviewFile string
Résultat bool

SetItemTags() public static méthode

change the tags of an UGC item

public static SetItemTags ( UGCUpdateHandle_t updateHandle, System pTags ) : bool
updateHandle UGCUpdateHandle_t
pTags System
Résultat bool

SetItemTitle() public static méthode

change the title of an UGC item

public static SetItemTitle ( UGCUpdateHandle_t handle, string pchTitle ) : bool
handle UGCUpdateHandle_t
pchTitle string
Résultat bool

SetItemUpdateLanguage() public static méthode

specify the language of the title or description that will be set

public static SetItemUpdateLanguage ( UGCUpdateHandle_t handle, string pchLanguage ) : bool
handle UGCUpdateHandle_t
pchLanguage string
Résultat bool

SetItemVisibility() public static méthode

change the visibility of an UGC item

public static SetItemVisibility ( UGCUpdateHandle_t handle, ERemoteStoragePublishedFileVisibility eVisibility ) : bool
handle UGCUpdateHandle_t
eVisibility ERemoteStoragePublishedFileVisibility
Résultat bool

SetLanguage() public static méthode

public static SetLanguage ( UGCQueryHandle_t handle, string pchLanguage ) : bool
handle UGCQueryHandle_t
pchLanguage string
Résultat bool

SetMatchAnyTag() public static méthode

Options only for querying all UGC

public static SetMatchAnyTag ( UGCQueryHandle_t handle, bool bMatchAnyTag ) : bool
handle UGCQueryHandle_t
bMatchAnyTag bool
Résultat bool

SetRankedByTrendDays() public static méthode

public static SetRankedByTrendDays ( UGCQueryHandle_t handle, uint unDays ) : bool
handle UGCQueryHandle_t
unDays uint
Résultat bool

SetReturnAdditionalPreviews() public static méthode

public static SetReturnAdditionalPreviews ( UGCQueryHandle_t handle, bool bReturnAdditionalPreviews ) : bool
handle UGCQueryHandle_t
bReturnAdditionalPreviews bool
Résultat bool

SetReturnChildren() public static méthode

public static SetReturnChildren ( UGCQueryHandle_t handle, bool bReturnChildren ) : bool
handle UGCQueryHandle_t
bReturnChildren bool
Résultat bool

SetReturnKeyValueTags() public static méthode

public static SetReturnKeyValueTags ( UGCQueryHandle_t handle, bool bReturnKeyValueTags ) : bool
handle UGCQueryHandle_t
bReturnKeyValueTags bool
Résultat bool

SetReturnLongDescription() public static méthode

public static SetReturnLongDescription ( UGCQueryHandle_t handle, bool bReturnLongDescription ) : bool
handle UGCQueryHandle_t
bReturnLongDescription bool
Résultat bool

SetReturnMetadata() public static méthode

public static SetReturnMetadata ( UGCQueryHandle_t handle, bool bReturnMetadata ) : bool
handle UGCQueryHandle_t
bReturnMetadata bool
Résultat bool

SetReturnOnlyIDs() public static méthode

public static SetReturnOnlyIDs ( UGCQueryHandle_t handle, bool bReturnOnlyIDs ) : bool
handle UGCQueryHandle_t
bReturnOnlyIDs bool
Résultat bool

SetReturnTotalOnly() public static méthode

public static SetReturnTotalOnly ( UGCQueryHandle_t handle, bool bReturnTotalOnly ) : bool
handle UGCQueryHandle_t
bReturnTotalOnly bool
Résultat bool

SetSearchText() public static méthode

public static SetSearchText ( UGCQueryHandle_t handle, string pSearchText ) : bool
handle UGCQueryHandle_t
pSearchText string
Résultat bool

SetUserItemVote() public static méthode

Steam Workshop Consumer API

public static SetUserItemVote ( PublishedFileId_t nPublishedFileID, bool bVoteUp ) : SteamAPICall_t
nPublishedFileID PublishedFileId_t
bVoteUp bool
Résultat SteamAPICall_t

StartItemUpdate() public static méthode

start an UGC item update. Set changed properties before commiting update with CommitItemUpdate()

public static StartItemUpdate ( AppId_t nConsumerAppId, PublishedFileId_t nPublishedFileID ) : UGCUpdateHandle_t
nConsumerAppId AppId_t
nPublishedFileID PublishedFileId_t
Résultat UGCUpdateHandle_t

StartPlaytimeTracking() public static méthode

usage tracking

public static StartPlaytimeTracking ( PublishedFileId_t pvecPublishedFileID, uint unNumPublishedFileIDs ) : SteamAPICall_t
pvecPublishedFileID PublishedFileId_t
unNumPublishedFileIDs uint
Résultat SteamAPICall_t

StopPlaytimeTracking() public static méthode

public static StopPlaytimeTracking ( PublishedFileId_t pvecPublishedFileID, uint unNumPublishedFileIDs ) : SteamAPICall_t
pvecPublishedFileID PublishedFileId_t
unNumPublishedFileIDs uint
Résultat SteamAPICall_t

StopPlaytimeTrackingForAllItems() public static méthode

public static StopPlaytimeTrackingForAllItems ( ) : SteamAPICall_t
Résultat SteamAPICall_t

SubmitItemUpdate() public static méthode

commit update process started with StartItemUpdate()

public static SubmitItemUpdate ( UGCUpdateHandle_t handle, string pchChangeNote ) : SteamAPICall_t
handle UGCUpdateHandle_t
pchChangeNote string
Résultat SteamAPICall_t

SubscribeItem() public static méthode

subscribe to this item, will be installed ASAP

public static SubscribeItem ( PublishedFileId_t nPublishedFileID ) : SteamAPICall_t
nPublishedFileID PublishedFileId_t
Résultat SteamAPICall_t

SuspendDownloads() public static méthode

SuspendDownloads( true ) will suspend all workshop downloads until SuspendDownloads( false ) is called or the game ends

public static SuspendDownloads ( bool bSuspend ) : void
bSuspend bool
Résultat void

UnsubscribeItem() public static méthode

unsubscribe from this item, will be uninstalled after game quits

public static UnsubscribeItem ( PublishedFileId_t nPublishedFileID ) : SteamAPICall_t
nPublishedFileID PublishedFileId_t
Résultat SteamAPICall_t

UpdateItemPreviewFile() public static méthode

updates an existing preview file for this item. pszPreviewFile points to local file, which must be under 1MB in size

public static UpdateItemPreviewFile ( UGCUpdateHandle_t handle, uint index, string pszPreviewFile ) : bool
handle UGCUpdateHandle_t
index uint
pszPreviewFile string
Résultat bool

UpdateItemPreviewVideo() public static méthode

updates an existing preview video for this item

public static UpdateItemPreviewVideo ( UGCUpdateHandle_t handle, uint index, string pszVideoID ) : bool
handle UGCUpdateHandle_t
index uint
pszVideoID string
Résultat bool