From 14ebfbf0dad0acceaf0a86937d976fbba53b0338 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Wed, 12 Oct 2016 15:54:42 +0100 Subject: [PATCH] Edit specific item --- Facepunch.Steamworks/Interfaces/Workshop.Item.cs | 5 +++++ Facepunch.Steamworks/Interfaces/Workshop.cs | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Facepunch.Steamworks/Interfaces/Workshop.Item.cs b/Facepunch.Steamworks/Interfaces/Workshop.Item.cs index e6d49ba..f276509 100644 --- a/Facepunch.Steamworks/Interfaces/Workshop.Item.cs +++ b/Facepunch.Steamworks/Interfaces/Workshop.Item.cs @@ -159,6 +159,11 @@ namespace Facepunch.Steamworks workshop.ugc.SetUserItemVote( Id, false ); } + public Editor Edit() + { + return workshop.EditItem( Id ); + } + /// /// Return a URL to view this item online diff --git a/Facepunch.Steamworks/Interfaces/Workshop.cs b/Facepunch.Steamworks/Interfaces/Workshop.cs index 7f0f53c..ccb1321 100644 --- a/Facepunch.Steamworks/Interfaces/Workshop.cs +++ b/Facepunch.Steamworks/Interfaces/Workshop.cs @@ -62,6 +62,11 @@ namespace Facepunch.Steamworks return new Editor() { workshop = this, Type = type }; } + public Editor EditItem( ulong itemId ) + { + return new Editor() { workshop = this, Id = itemId }; + } + public enum Order { RankedByVote = 0,