Class Tech
Technology tree items
Inherited Members
Namespace: Mannequin.Bindings
Assembly: Collapse.dll
Syntax
public class Tech : Item
Constructors
Tech(String)
Get a tech from an asset name
Declaration
public Tech(string asset)
Parameters
Type | Name | Description |
---|---|---|
System.String | asset | The asset name |
Properties
BaseResearchTime
The base research time for this Tech
Declaration
public int BaseResearchTime { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
AddRequiredItem(InventoryItem)
Add required InventoryItem to research this Tech
Declaration
public void AddRequiredItem(InventoryItem item)
Parameters
Type | Name | Description |
---|---|---|
InventoryItem | item | The item |
IsRequiredItem(InventoryItem)
Whether an InventoryItem is required to research this tech
Declaration
public bool IsRequiredItem(InventoryItem item)
Parameters
Type | Name | Description |
---|---|---|
InventoryItem | item | The item |
Returns
Type | Description |
---|---|
System.Boolean | Whether the InventoryItem is required to research |
RemoveRequiredItem(InventoryItem)
Remove required InventoryItem to research this tech
Declaration
public void RemoveRequiredItem(InventoryItem item)
Parameters
Type | Name | Description |
---|---|---|
InventoryItem | item | The item |
RequiredItems()
Get a list of the required items to research this Tech
Declaration
public List<InventoryItem> RequiredItems()
Returns
Type | Description |
---|---|
List<InventoryItem> | The required items to research this Tech |