diff --git a/Facepunch.Steamworks/Structs/UgcEditor.cs b/Facepunch.Steamworks/Structs/UgcEditor.cs index ffd00f03..05174d47 100644 --- a/Facepunch.Steamworks/Structs/UgcEditor.cs +++ b/Facepunch.Steamworks/Structs/UgcEditor.cs @@ -78,6 +78,7 @@ public Editor( PublishedFileId fileId ) : this() public Editor WithPublicVisibility() { Visibility = RemoteStoragePublishedFileVisibility.Public; return this; } public Editor WithFriendsOnlyVisibility() { Visibility = RemoteStoragePublishedFileVisibility.FriendsOnly; return this; } public Editor WithPrivateVisibility() { Visibility = RemoteStoragePublishedFileVisibility.Private; return this; } + public Editor WithUnlistedVisibility() { Visibility = RemoteStoragePublishedFileVisibility.Unlisted; return this; } List Tags; Dictionary> KeyValueTags; @@ -297,4 +298,4 @@ public struct PublishResult /// public bool NeedsWorkshopAgreement; } -} \ No newline at end of file +} diff --git a/Facepunch.Steamworks/Structs/UgcItem.cs b/Facepunch.Steamworks/Structs/UgcItem.cs index fb63898a..6e43da2a 100644 --- a/Facepunch.Steamworks/Structs/UgcItem.cs +++ b/Facepunch.Steamworks/Structs/UgcItem.cs @@ -88,6 +88,11 @@ public Item( PublishedFileId id ) : this() /// True if this is only visible to the creator /// public bool IsPrivate => details.Visibility == RemoteStoragePublishedFileVisibility.Private; + + /// + /// True if this is only visible to people with the URL + /// + public bool IsUnlisted => details.Visibility == RemoteStoragePublishedFileVisibility.Unlisted; /// /// True if this item has been banned