コード例 #1
0
        public override void Execute()
        {
            List <bool> selectedDice = new List <bool>();
            JSONObject  jsonHolder1  = (JSONObject)GetParameter("dice");

            foreach (var dieInfo in jsonHolder1.list)
            {
                bool isSelected = bool.Parse(dieInfo["selected"].str);
                selectedDice.Add(isSelected);
            }
            DiceRerollManager.SyncDiceRerollSelected(selectedDice);
        }
コード例 #2
0
        public override void Execute()
        {
            string diceToText = "";

            List <bool> selectedDice = new List <bool>();
            JSONObject  jsonHolder1  = (JSONObject)GetParameter("dice");

            foreach (var dieInfo in jsonHolder1.list)
            {
                bool isSelected = bool.Parse(dieInfo["selected"].str);
                selectedDice.Add(isSelected);
                diceToText += isSelected + " ";
            }

            Console.Write($"Dice are selected for reroll: {diceToText}");

            DiceRerollManager.SyncDiceRerollSelected(selectedDice);
        }