mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-27 07:05:50 +03:00
InventoryDef.IsGenerator
This commit is contained in:
parent
060af634d7
commit
b6fa05afa2
@ -46,6 +46,12 @@ public InventoryDef( InventoryDefId defId )
|
||||
/// </summary>
|
||||
public string Type => GetProperty( "type" );
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if this is an item that generates an item, rather
|
||||
/// than something that is actual an item
|
||||
/// </summary>
|
||||
public bool IsGenerator => Type == "generator";
|
||||
|
||||
/// <summary>
|
||||
/// Shortcut to call GetProperty( "exchange" )
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user