From cb792b0f04965ca039f31d554862621b5025f1d8 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Fri, 4 Sep 2020 10:34:33 +0100 Subject: [PATCH] Expose ItemPreviewType --- Facepunch.Steamworks/Generated/SteamEnums.cs | 2 +- .../Structs/UgcAdditionalPreview.cs | 13 +------------ Generator/Cleanup.cs | 1 + 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/Facepunch.Steamworks/Generated/SteamEnums.cs b/Facepunch.Steamworks/Generated/SteamEnums.cs index cdcc8ef..d9ae160 100644 --- a/Facepunch.Steamworks/Generated/SteamEnums.cs +++ b/Facepunch.Steamworks/Generated/SteamEnums.cs @@ -1874,7 +1874,7 @@ namespace Steamworks // // EItemPreviewType // - internal enum ItemPreviewType : int + public enum ItemPreviewType : int { Image = 0, YouTubeVideo = 1, diff --git a/Facepunch.Steamworks/Structs/UgcAdditionalPreview.cs b/Facepunch.Steamworks/Structs/UgcAdditionalPreview.cs index 49e6e34..8b95d33 100644 --- a/Facepunch.Steamworks/Structs/UgcAdditionalPreview.cs +++ b/Facepunch.Steamworks/Structs/UgcAdditionalPreview.cs @@ -17,17 +17,6 @@ namespace Steamworks.Data public string UrlOrVideoID { get; private set; } public string OriginalFileName { get; private set; } - internal ItemPreviewType ItemPreviewType { get; private set; } - - /// - /// Flags that specify the type of preview an item has: - /// Image = 0, - /// YouTubeVideo = 1, - /// Sketchfab = 2, - /// EnvironmentMap_HorizontalCross = 3, - /// EnvironmentMap_LatLong = 4, - /// ReservedMax = 255 - /// - public int GetItemPreviewType() => (int)ItemPreviewType; + public ItemPreviewType ItemPreviewType { get; private set; } } } diff --git a/Generator/Cleanup.cs b/Generator/Cleanup.cs index 4a7d3f3..923b80e 100644 --- a/Generator/Cleanup.cs +++ b/Generator/Cleanup.cs @@ -142,6 +142,7 @@ public static class Cleanup if ( name == "NetIdentity" ) return "public"; if ( name == "NetAddress" ) return "public"; if ( name == "NetDebugOutput" ) return "public"; + if ( name == "ItemPreviewType" ) return "public"; return "internal"; }