Exemple #1
0
        // TODO refactor: Only for tests purpose. Remove from the teacher.
        public List <LogPlayData> GetScoreHistoryForCurrentJourneyPosition()
        {
            // @note: shows how to work with playerprofile as well as the database
            JourneyPosition currentJourneyPosition = playerProfile.CurrentJourneyPosition;
            string          query = string.Format("SELECT * FROM " + typeof(LogPlayData).Name + " WHERE PlayEvent = {0} AND PlaySession = '{1}'",
                                                  (int)PlayEvent.Skill, currentJourneyPosition.ToString());
            List <LogPlayData> list = dbManager.FindLogPlayDataByQuery(query);

            return(list);
        }
Exemple #2
0
 private void HandleJourneyPosition(JourneyPosition journeyPosition)
 {
     journeyPosTextUI.text = journeyPosition.ToString();
 }