Example #1
0
        public static int GetPlayerSelectedIndex(ActionContainer action)
        {
            var tempList = action.GetTempPlayerList();

            if (tempList.Count == 0)
            {
                throw new BasicBlankException("Cannot get the player selected because there are no players");
            }
            return(tempList.GetRandomItem());
        }