public RewardColorItem(RewardColor _color) { ID = _color.ID; Color1Name = _color.Color1Name; Color1RGB = _color.Color1RGB; Color2Name = _color.Color2Name; Color2RGB = _color.Color2RGB; }
/// <summary> /// Gets the material pair for standard reward. /// </summary> /// <param name="_rewardId">The reward identifier.</param> /// <param name="_colorId">The color identifier.</param> /// <returns></returns> public static MaterialPair GetMaterialPairFromRewardIdAndColorId(string _rewardId, string _colorId) { Reward reward = RewardSystemManager.GetRewardById(_rewardId); RewardColor color = config.RewardsColorPairs.Find(c => c.ID == _colorId); MaterialPair mp = new MaterialPair(color.Color1Name, reward.Material1, color.Color2Name, reward.Material2); return(mp); }