示例#1
0
 public static int RatingLocalization(LoyaltyRating rating)
 {
     switch (rating)
     {
         default: return 1152115; // Unknown
         case LoyaltyRating.Disfavored: return 1152118;
         case LoyaltyRating.Disliked: return 1152122;
         case LoyaltyRating.Detested: return 1152123;
         case LoyaltyRating.Loathed: return 1152128;
         case LoyaltyRating.Despised: return 1152129;
         case LoyaltyRating.Reviled: return 1152130;
         case LoyaltyRating.Scorned: return 1152136;
         case LoyaltyRating.Shunned: return 1152137;
         case LoyaltyRating.Villified: return 1152138;
         case LoyaltyRating.Abhorred: return 1152139;
         case LoyaltyRating.Unknown: return 1152115;
         case LoyaltyRating.Doubted: return 1152117;
         case LoyaltyRating.Distrusted: return 1152121;
         case LoyaltyRating.Disgraced: return 1152127;
         case LoyaltyRating.Denigrated: return 1152135;
         case LoyaltyRating.Commended: return 1152116;
         case LoyaltyRating.Esteemed: return 1152120;
         case LoyaltyRating.Respected: return 1152119;
         case LoyaltyRating.Honored: return 1152126;
         case LoyaltyRating.Admired: return 1152125;
         case LoyaltyRating.Adored: return 1152124;
         case LoyaltyRating.Lauded: return 1152134;
         case LoyaltyRating.Exalted: return 1152133;
         case LoyaltyRating.Revered: return 1152132;
         case LoyaltyRating.Venerated: return 1152131;
     }
 }
示例#2
0
		public static bool IsLove(LoyaltyRating rating)
		{
			foreach(LoyaltyRating[] ratings in _LoveLoyaltyTable)
			{
				foreach(LoyaltyRating r in ratings)
				{
					if(r == rating)
						return true;
				}
			}
			
			return false;
		}
示例#3
0
		private LoyaltyRating GetRating(int points, int[][] table, LoyaltyRating[][] loyaltytable)
		{
            LoyaltyRating rating = LoyaltyRating.Unknown;

			for(int i = 0; i < table.Length; i++)
			{
				for(int j = 0; j < table[i].Length; j++)
				{
					if(points >= table[i][j])
						rating = loyaltytable[i][j];
				}
			}
			
			return rating;
		}