Esempio n. 1
0
 /// <summary>
 /// Constructor from the skill id with activity.
 /// </summary>
 /// <param name="id"></param>
 /// <param name="level"></param>
 /// <param name="activityId"></param>
 public StaticSkillLevel(int id, int level, int activityId)
     : this()
 {
     this.Skill    = StaticSkills.GetSkillById(id);
     this.Level    = level;
     this.Activity = (BlueprintActivity)Enum.ToObject(typeof(BlueprintActivity), activityId);
 }
Esempio n. 2
0
 /// <summary>
 /// Constructor from the skill name
 /// </summary>
 /// <param name="skillName"></param>
 /// <param name="level"></param>
 public StaticSkillLevel(int id, int level)
     : this()
 {
     this.Skill = StaticSkills.GetSkillById(id);
     this.Level = level;
 }