Esempio n. 1
0
        public bool DoAdd_QuizPoint(int iPoint)
        {
            ulQuizPoint += (ulong)iPoint;
            SCPHPConnector.Update_Set(this, nameof(ulQuizPoint), ulQuizPoint.ToString());

            ulQuizWinCount += 1;
            SCPHPConnector.Update_Set(this, nameof(ulQuizWinCount), ulQuizWinCount.ToString());

            SQuizRole pQuizRole    = Program.mapQuizRole[p_pRole];
            bool      bIsPromotion = ulQuizPoint >= (ulong)pQuizRole.iQuizPoint;

            if (bIsPromotion)
            {
                strGrade = p_pRole.NextEnum_String <EUserRole>();
                SCPHPConnector.Update_Set(this, nameof(strGrade), strGrade);
            }

            return(bIsPromotion);
        }
Esempio n. 2
0
 public void DoAdd_WinCount()
 {
     SCPHPConnector.Update_Set(this, nameof(ulWinCount), (++ulWinCount).ToString());
 }