public string DoPrint_Point(bool bIsPromotion = false) { SQuizRole pQuizRole = Program.mapQuizRole[p_pRole]; if (bIsPromotion) { return($"현재[ ({p_pRole.PrevEnum_String<EUserRole>()} -> {strGrade}) {ulQuizPoint} / 다음 역할({p_pRole.NextEnum_String<EUserRole>()}) {pQuizRole.iQuizPoint} ]"); } else { return($"현재[ ({strGrade}) {ulQuizPoint} / 다음 역할({p_pRole.NextEnum_String<EUserRole>()}) {pQuizRole.iQuizPoint} ]"); } }
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); }