Method CreateArray
| Edit this page View SourceCreateArray(Dictionary<string, int>, bool)
Creates a mocked Piece.Requirement array
Declaration
public static Piece.Requirement[] CreateArray(Dictionary<string, int> requirements, bool recover = true)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<string, int> | requirements | List of prefab names and amounts |
| bool | recover | Whether the items are dropped after deconstructing a piece |
Returns
| Type | Description |
|---|---|
| Requirement[] |