From b6fa05afa27e50a89a38ee4c08a96327e5d4fe18 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Tue, 7 May 2019 21:11:45 +0100 Subject: [PATCH] InventoryDef.IsGenerator --- Facepunch.Steamworks/Structs/InventoryDef.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Facepunch.Steamworks/Structs/InventoryDef.cs b/Facepunch.Steamworks/Structs/InventoryDef.cs index 208cf64..4e58754 100644 --- a/Facepunch.Steamworks/Structs/InventoryDef.cs +++ b/Facepunch.Steamworks/Structs/InventoryDef.cs @@ -46,6 +46,12 @@ public InventoryDef( InventoryDefId defId ) /// public string Type => GetProperty( "type" ); + /// + /// Returns true if this is an item that generates an item, rather + /// than something that is actual an item + /// + public bool IsGenerator => Type == "generator"; + /// /// Shortcut to call GetProperty( "exchange" ) ///