Пример #1
0
        public List <LL_LetterData> GetAllTestLetterDataLL(LetterFilters filters = null)
        {
            if (filters == null)
            {
                filters = new LetterFilters();
            }

            List <LL_LetterData> list = new List <LL_LetterData>();

            foreach (var letterData in this.wordHelper.GetAllLetters(filters))
            {
                list.Add(BuildLetterData_LL(letterData));
            }

            /*if (ConfigAI.verboseTeacher)
             * {
             *  Debug.Log("All test letter data requested to teacher.");
             * }*/

            return(list);
        }
Пример #2
0
        public LL_LetterData GetRandomTestLetterLL(LetterFilters filters = null)
        {
            if (filters == null)
            {
                filters = new LetterFilters();
            }

            if (giveWarningOnFake)
            {
                Debug.LogWarning("You are using fake data for testing. Make sure to test with real data too.");
                giveWarningOnFake = false;
            }

            var data = this.wordHelper.GetAllLetters(filters).RandomSelectOne();

            /*if (ConfigAI.verboseTeacher)
             * {
             *  Debug.Log("Random test Letter requested to teacher: " + data.ToString());
             * }*/

            return(BuildLetterData_LL(data));
        }