using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace SimplifyXR
{

    [DirectiveCategory(DirectiveCategories.Action,
        subCategory = DirectiveSubCategory.UI,
        directiveInfo = "This <i>action</i> triggers a <b>multiple choice selection</b> to display in the simpleAR Standard Instruction Panel.",
        prettyName = "Display Instructional Multiple Choice")]
    public class DisplayMultipleChoiceAction : Actions
    {

        public simpleARInstructionFeatures instructionPanel;

        [Tooltip("Customizeable properties for the multiple choice.")]
        public MultipleChoiceMessage multiplechoiceInfo;
        

        public override List<KnobKeywords> ReceiveKeywords()
        {
            return new List<KnobKeywords>();
        }

        public override List<KnobKeywords> SendKeywords()
        {
            return new List<KnobKeywords>();
        }

        public override void Execute()
        {
            instructionPanel = 
                instructionPanel == null ? 
                Object.FindObjectOfType<simpleARInstructionFeatures>() :
                instructionPanel;
            instructionPanel?.DisplayMultipleChoice(multiplechoiceInfo);
            ThisActionCompleted();
        }
    }
}

