示例#1
0
 public Reward(ChanceTag chance, params TagBase[] tags)
 {
     RewardTags = new List <TagBase>();
     foreach (var tag in tags)
     {
         RewardTags.Add(tag);
     }
     RewardTags.Add(chance);
 }
示例#2
0
        public static List <Reward> GroupRewardWithChance(this IEnumerable <ItemTag> items, ChanceTag chance)
        {
            List <Reward> rewards = new List <Reward>();

            foreach (var item in items)
            {
                rewards.Add(new Reward(chance, item));
            }
            return(rewards);
        }