mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-27 23:25:55 +03:00
InventoryDef.IsGenerator
This commit is contained in:
parent
060af634d7
commit
b6fa05afa2
@ -46,6 +46,12 @@ public InventoryDef( InventoryDefId defId )
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string Type => GetProperty( "type" );
|
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>
|
/// <summary>
|
||||||
/// Shortcut to call GetProperty( "exchange" )
|
/// Shortcut to call GetProperty( "exchange" )
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user