diff --git a/Facepunch.Steamworks/SteamClient.cs b/Facepunch.Steamworks/SteamClient.cs index 5ea8790..9eee454 100644 --- a/Facepunch.Steamworks/SteamClient.cs +++ b/Facepunch.Steamworks/SteamClient.cs @@ -38,6 +38,7 @@ namespace Steamworks SteamFriends.InstallEvents(); SteamScreenshots.InstallEvents(); SteamUserStats.InstallEvents(); + SteamInventory.InstallEvents(); RunCallbacksAsync(); } diff --git a/Facepunch.Steamworks/SteamInventory.cs b/Facepunch.Steamworks/SteamInventory.cs new file mode 100644 index 0000000..05f3b9b --- /dev/null +++ b/Facepunch.Steamworks/SteamInventory.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using System.Runtime.InteropServices; +using System.Text; +using System.Threading.Tasks; +using Steamworks.Data; + +namespace Steamworks +{ + /// + /// Undocumented Parental Settings + /// + public static class SteamInventory + { + static ISteamInventory _internal; + internal static ISteamInventory Internal + { + get + { + if ( _internal == null ) + _internal = new ISteamInventory(); + + return _internal; + } + } + + internal static void InstallEvents() + { + new Event( x => OnInventoryUpdated?.Invoke() ); + new Event( x => OnDefinitionsUpdated?.Invoke() ); + } + + public static event Action OnInventoryUpdated; + public static event Action OnDefinitionsUpdated; + + } +} \ No newline at end of file