Method Create
| Edit this page View SourceCreate(string, int, bool)
Creates a mocked Piece.Requirement
Declaration
public static Piece.Requirement Create(string name, int amount = 1, bool recover = true)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Prefab name |
| int | amount | Amount |
| bool | recover | Whether the item is dropped after deconstructing a piece |
Returns
| Type | Description |
|---|---|
| Requirement |