InventoryDef.IsGenerator

This commit is contained in:
Garry Newman 2019-05-07 21:11:45 +01:00
parent 060af634d7
commit b6fa05afa2

View File

@ -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>