A class in Root.Township, ATT.MicroTutorial.Steps.
Micro tutorial step that completes when the player crafts an item using one of the listed crafting parts.
Constructors
| Member | What it is |
|---|
ItemCraftedStep() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private List<CraftingPart> craftingParts | Parts that count; crafting anything that uses one completes the step. |
private static readonly Type[] requiredEventTypes | Backing array for RequiredPlayerEventTypes. |
Properties
| Member | What it is |
|---|
override IEnumerable<Type> RequiredPlayerEventTypes { get; } | Only ItemCraftedEvent. |
Methods
| Member | What it is |
|---|
override bool IsCompletedByEvent(IPlayerEvent eventInfo) | True for an ItemCraftedEvent with more than one part where any part hash matches a listed part. |
override IResult IsConfigurationValid() | Errors if no crafting parts are set. |