From 55d3fd6b7542abe88ed54ffdb1aaf9a93de5c31a Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Fri, 20 Jul 2018 12:01:52 +0100 Subject: [PATCH] Default workshop items to ItemType.Community (most common) --- Facepunch.Steamworks/Interfaces/Workshop.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Facepunch.Steamworks/Interfaces/Workshop.cs b/Facepunch.Steamworks/Interfaces/Workshop.cs index c61413c..5338e06 100644 --- a/Facepunch.Steamworks/Interfaces/Workshop.cs +++ b/Facepunch.Steamworks/Interfaces/Workshop.cs @@ -158,7 +158,7 @@ public Query CreateQuery() /// Create a new Editor object with the intention of creating a new item. /// Your item won't actually be created until you call Publish() on the object. /// - public Editor CreateItem( ItemType type ) + public Editor CreateItem( ItemType type = ItemType.Community ) { return CreateItem(this.steamworks.AppId, type); } @@ -169,7 +169,7 @@ public Editor CreateItem( ItemType type ) /// Your item will be published to the provided appId. /// /// You need to add app publish permissions for cross app uploading to work. - public Editor CreateItem( uint workshopUploadAppId, ItemType type ) + public Editor CreateItem( uint workshopUploadAppId, ItemType type = ItemType.Community ) { return new Editor() { workshop = this, WorkshopUploadAppId = workshopUploadAppId, Type = type }; }