Skip to main content

ItemCraftedStep

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​

MemberWhat it is
ItemCraftedStep()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

2 private and internal fields
MemberWhat it is
private List<CraftingPart> craftingPartsParts that count; crafting anything that uses one completes the step.
private static readonly Type[] requiredEventTypesBacking array for RequiredPlayerEventTypes.

Properties​

MemberWhat it is
override IEnumerable<Type> RequiredPlayerEventTypes { get; }Only ItemCraftedEvent.

Methods​

MemberWhat 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.