Repository navigation
WorkShop APIs
##Object
Represents Steam SDK EUGCMatchingUGCType, matching UGC types for queries.
ItemsItemsMtxItemsReadyToUseCollectionsArtworkVideosScreenshotsAllGuidesWebGuidesIntegratedGuidesUsableInGameControllerBindings
Represents Steam SDK EUGCQuery, combination of sorting and filtering for queries across all UGC.
RankedByVoteRankedByPublicationDateAcceptedForGameRankedByAcceptanceDateRankedByTrendFavoritedByFriendsRankedByPublicationDateCreatedByFriendsRankedByPublicationDateRankedByNumTimesReportedCreatedByFollowedUsersRankedByPublicationDateNotYetRatedRankedByTotalVotesAscRankedByVotesUpRankedByTextSearch
Represents Steam SDK SteamUGCDetails_t(return by greenworks.ugcGetItems), details for a single published file/UGC
-
acceptForUseBoolean: Whether is flaged as accepted in Steam workshop. -
bannedBoolean: Whether is banned -
tagsTruncatedBoolean: Whether the list of tags is too long to be returned in provided buffer. -
fileTypeInteger: Type of the file -
resultInteger: Result of the operation.-
1: Success -
Others: Fail
-
-
visibilityInteger: the visiblility of the file-
0: Public -
1: FriendsOnly -
2: Private
-
-
scoreDouble: Calculated score -
fileString: Represents uint64, file handle -
fileNameString: Cloud file name of the primary file -
fileSizeInteger: Size of the primary file -
previewFileString: Represents uint64, handle of preview file -
previewFileSizeInteger: Size of preview file -
steamIDOwnerString: Represents uint64, Steam ID of user who created the file. -
consumerAppIDInteger: ID of app that consumes the file -
creatorAppIDInteger: ID of app that created the file -
publishedFileIdString: Represents uint64, the file ID -
titleString: Title of the file -
descriptionString: Description of the file -
URLString: -
tagsString: List of tags, separated by comma. -
timeAddedToUserListInteger: Time when user added this file to list. -
timeCreatedInteger: Time when the file was created -
timeUpdatedInteger: Time when the file is last updated. -
votesDownInteger: Number of votes down -
votesUpInteger: Number of votes up
Represents Steam SDK EUserUGCList, different lists of published UGC for a user.
PublishedVotedOnVotedUpVotedDownWillVoteLaterFavoritedSubscribedUsedOrPlayerFollowed
Represents Steam SDK EUserUGCListSortOrder, sort order for user published UGC lists
CreationOrderDescCreationOrderAscTitleAscLastUpdatedDescSubscriptionDateDescVoteScoreDescForModeration
##APIs
-
file_pathString -
success_calbackFunction(file_handle)-
file_handleString: Represents uint64, the file handle that can be shared with users and features
-
-
error_callbackFunction(err)
greenworks.publishWorkshopFile(file_path, image_path, title, description, success_callback, [error_callback])
-
file_pathString -
image_pathString -
titleString -
descriptionString -
success_callbackFunction(publish_file_handle)-
publish_file_handleString: Represents uint64, the published file handle
-
-
error_callbackFunction(err)
Publish file_path workshop item on Steam. The files file_path and image_path need to be existed on Steam Cloud(Using writeTextToFile or saveFilesToCloud API) and get shared(Using Greenworks.fileShare) first.
An empty String of image_path means no image for the workshp item.
greenworks.updatePublishedWorkshopFile(published_file_handle, file_path, image_path, title, description, success_callback, [error_callback])
-
published_file_handleString: Represents uint64, the published file handle. -
file_pathString -
image_pathString -
titleString -
descriptionString -
success_callbackFunction() -
error_callbackFunction(err)
An empty String of file_path/image_path/title/description means no update of that field.
greenworks.ugcPublish(file_path, title, description, image_path, success_callback, [error_callback], [progress_callback])
-
file_pathString -
titleString -
descriptionString -
image_pathString -
success_callbackFunction(published_file_handle)-
published_file_handleString: Represents uint64, the published file handle
-
-
error_callbackFunction(err) -
progress_callbackFunction(progress_msg)-
progress_msgString: current process during publish period:Completed on saving files to Steam Cloud,Completed on sharing files.
-
Publishes user generated content(ugc) to Steam workshop.
greenworks.ugcPublishUpdate(published_file_handle, file_path, title, description, image_path, success_callback, [error_callback], [progress_callback])
-
published_file_handleString: Represents uint64, the published file handle -
file_pathString -
titleString -
descriptionString -
image_pathString -
success_callbackFunction() -
error_callbackFunction(err) -
progress_callbackFunction(progress_msg)-
progress_msgString: current process during publish-update period:Completed on saving files to Steam Cloud,Completed on sharing files.
-
Updates published ugc.
-
ugc_matching_typegreenworks.UGCMatchingType -
ugc_query_typegreenworks.UGCQueryType -
success_callbackFunction(items)-
itemsArray ofSteamUGCDetailsObject
-
-
error_callbackFunction(err)
greenworks.ugcGetUserItems(ugc_matching_type, ugc_list_sort_order, ugc_list, success_callback, [error_callback])
-
ugc_matching_typegreenworks.UGCMatchingType -
ugc_list_sort_ordergreenworks.UserUGCListSortOrder -
ugc_listgreenworks.UserUGCList -
success_callbackFunction(items)-
itemsArray ofSteamUGCDetailsObject
-
-
error_callbackFunction(err)
-
download_file_handleString: Represents uint64, the download file handle -
download_dirString: The file path saving the download file on local machine -
success_callbackFunction() -
error_callbackFunction(err)
-
sync_dirString: The directory to download the sync workshop item. -
success_callbackFunction(items)-
itemsArray of ObjectSteamUGCDetails-
isUpdatedBoolean: Whether the item is updated in this function call
-
-
error_callbackFunction(err)
This API will download/synchronize user's workitems(UserUGCList.Subscribed, UserMatchingType.Items) to the local sync_dir.(Only updated if the last updated time of the item is different with Steam Cloud or the workitem isn't existed in local)
-
published_file_handleString: Represent uint64, the file handle of unsubscribed published workshp item(SteamUGCDetails.publishedFileId). -
success_callbackFunction() -
error_callbackFunction(err)
-
published_file_idString: Represent uint64, the id of published file.
Shows the Steam overlay pointed to Steam's workshop page or to the specified workshop item.