Method CreateArray
| Improve this Doc 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 resources are returned after deconstruction |
Returns
Type | Description |
---|---|
Requirement[] |