Show / Hide Table of Contents

Class MockRequirement

Helper class for creating Mocks of item/piece requirements.
Inheritance
System.Object
MockRequirement
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Jotunn.Entities
Assembly: Jotunn.dll
Syntax
public static class MockRequirement

Methods

| Improve this Doc View Source

Create(String, Int32, Boolean)

Creates a mocked Piece.Requirement
Declaration
public static Piece.Requirement Create(string name, int amount = 1, bool recover = true)
Parameters
Type Name Description
System.String name Prefab name
System.Int32 amount Amount
System.Boolean recover Whether the resource is returned after deconstruction
Returns
Type Description
Piece.Requirement
| Improve this Doc View Source

CreateArray(Dictionary<String, Int32>, Boolean)

Creates a mocked Piece.Requirement array
Declaration
public static Piece.Requirement[] CreateArray(Dictionary<string, int> requirements, bool recover = true)
Parameters
Type Name Description
System.Collections.Generic.Dictionary<System.String, System.Int32> requirements List of prefab names and amounts
System.Boolean recover Whether the resources are returned after deconstruction
Returns
Type Description
Piece.Requirement[]
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾