Example #1
0
    public void StoreCompletedCraftingSequence()
    {
        if (activeSequence.IsValid())
        {
            Debug.Log(activeSequence.ToString());
            activeSequence.RegisterSuccessfulSequenceConclusion();
            completedCraftingSequences.Push(activeSequence);

            activeSequence = new CraftingSequence();
            progressTracker.RegisterCraftingSequenceProgress(completedCraftingSequences.Peek());
        }

        activeSequence.ClearSequence();
    }
Example #2
0
 public bool ValidateCraftingSequence(CraftingSequence sequence)
 {
     return(sequences.Contains(sequence.ToString()));
 }