From e792d3b3b51fe23f5bf3a688dcd2c0e9ffee31e1 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Fri, 20 Jul 2018 12:07:27 +0100 Subject: [PATCH] Added Workshop.Editor.MetaData --- Facepunch.Steamworks/Interfaces/Workshop.Editor.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Facepunch.Steamworks/Interfaces/Workshop.Editor.cs b/Facepunch.Steamworks/Interfaces/Workshop.Editor.cs index 05fd95e..5dda1f6 100644 --- a/Facepunch.Steamworks/Interfaces/Workshop.Editor.cs +++ b/Facepunch.Steamworks/Interfaces/Workshop.Editor.cs @@ -26,6 +26,7 @@ public class Editor public string Error { get; internal set; } = null; public string ChangeNote { get; set; } = ""; public uint WorkshopUploadAppId { get; set; } + public string MetaData { get; set; } = null; public enum VisibilityType : int { @@ -180,9 +181,13 @@ private void PublishChanges() workshop.ugc.SetItemPreview( UpdateHandle, PreviewImage ); } + if ( MetaData != null ) + { + workshop.ugc.SetItemMetadata( UpdateHandle, MetaData ); + } + /* workshop.ugc.SetItemUpdateLanguage( UpdateId, const char *pchLanguage ) = 0; // specify the language of the title or description that will be set - workshop.ugc.SetItemMetadata( UpdateId, const char *pchMetaData ) = 0; // change the metadata of an UGC item (max = k_cchDeveloperMetadataMax) workshop.ugc.RemoveItemKeyValueTags( UpdateId, const char *pchKey ) = 0; // remove any existing key-value tags with the specified key workshop.ugc.AddItemKeyValueTag( UpdateId, const char *pchKey, const char *pchValue ) = 0; // add new key-value tags for the item. Note that there can be multiple values for a tag. workshop.ugc.AddItemPreviewFile( UpdateId, const char *pszPreviewFile, EItemPreviewType type ) = 0; // add preview file for this item. pszPreviewFile points to local file, which must be under 1MB in size