Method Create
| Improve this Doc 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 resource is returned after deconstruction |
Returns
Type | Description |
---|---|
Requirement |