protected QuestRewardInfo Gold(uint amount) { var result = new QuestRewardInfo(); result.Type = RewardType.Gold; result.Amount = amount; return result; }
protected QuestRewardInfo ExplExp(uint amount) { var result = new QuestRewardInfo(); result.Type = RewardType.ExplExp; result.Amount = amount; return result; }
protected QuestRewardInfo Skill(SkillConst skillId, SkillRank rank) { var result = new QuestRewardInfo(); result.Type = RewardType.Skill; result.Id = (uint)skillId; result.Amount = (uint)rank; return result; }
protected QuestRewardInfo Item(uint itemId, uint amount) { var result = new QuestRewardInfo(); result.Type = RewardType.Item; result.Id = itemId; result.Amount = amount; return result; }
public void AddReward(QuestRewardInfo info) { this.AddReward(0, info); }
public void AddReward(byte group, QuestRewardInfo info) { info.Group = group; this.Info.Rewards.Add(info); }