Esempio n. 1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="owner">The owner.</param>
        /// <param name="skill">The skill.</param>
        /// <param name="level">The level.</param>
        public PlanEntry(BasePlan owner, StaticSkill skill, Int64 level)
        {
            m_owner = owner;
            m_skill = skill;
            m_level = level;

            m_priority = DefaultPriority;
            m_notes = String.Empty;

            OldTrainingTime = TimeSpan.Zero;
            TrainingTime = TimeSpan.Zero;
        }
Esempio n. 2
0
        /// <summary>
        /// Deserialization constructor.
        /// </summary>
        /// <param name="owner">The owner.</param>
        /// <param name="serial">The serial.</param>
        internal PlanEntry(BasePlan owner, SerializablePlanEntry serial)
        {
            m_owner = owner;
            m_entryType = serial.Type;
            m_skill = GetSkill(serial);
            m_level = serial.Level;
            m_notes = serial.Notes;
            m_priority = serial.Priority;

            m_planGroups.AddRange(serial.PlanGroups);

            if (serial.Remapping != null)
                m_remapping = new RemappingPoint(serial.Remapping);
        }
Esempio n. 3
0
 /// <summary>
 /// Gets the level of the given skill
 /// </summary>
 /// <param name="skill"></param>
 /// <returns></returns>
 public override int GetSkillPoints(StaticSkill skill)
 {
     return m_skills[skill].SkillPoints;
 }
Esempio n. 4
0
 /// <summary>
 /// Gets the level of the given skill
 /// </summary>
 /// <param name="skill"></param>
 /// <returns></returns>
 public override int GetSkillLevel(StaticSkill skill)
 {
     return m_skills[skill].Level;
 }
Esempio n. 5
0
 /// <summary>
 /// Constructor from the static skill object.
 /// </summary>
 /// <param name="skill"></param>
 /// <param name="level"></param>
 public StaticSkillLevel(StaticSkill skill, long level)
 {
     Skill = skill;
     Level = level;
 }
Esempio n. 6
0
 /// <summary>
 /// Constructor from the static skill object.
 /// </summary>
 /// <param name="skill"></param>
 /// <param name="level"></param>
 public StaticSkillLevel(StaticSkill skill, int level)
     : this()
 {
     this.Skill = skill;
     this.Level = level;
 }
Esempio n. 7
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="skill">The skill.</param>
 /// <param name="level">The level.</param>
 public PlanEntry(StaticSkill skill, Int64 level)
     : this(null, skill, level)
 {
 }
Esempio n. 8
0
 /// <summary>
 /// Internal constructor, only used for character creation and updates
 /// </summary>
 /// <param name="owner"></param>
 /// <param name="group"></param>
 /// <param name="skill"></param>
 internal Skill(Character owner, SkillGroup group, StaticSkill skill)
 {
     m_character = owner;
     m_staticData = skill;
     m_skillGroup = group;
 }
Esempio n. 9
0
 /// <summary>
 /// Internal constructor, only used for character creation and updates
 /// </summary>
 /// <param name="owner"></param>
 /// <param name="group"></param>
 /// <param name="skill"></param>
 internal Skill(Character owner, SkillGroup group, StaticSkill skill)
 {
     Character = owner;
     StaticData = skill;
     Group = group;
 }
Esempio n. 10
0
        /// <summary>
        /// Gets the level of the given skill.
        /// </summary>
        /// <param name="skill">The skill.</param>
        /// <returns></returns>
        /// <exception cref="System.ArgumentNullException">skill</exception>
        public override Int64 GetSkillPoints(StaticSkill skill)
        {
            skill.ThrowIfNull(nameof(skill));

            return Skills[skill.ID].SkillPoints;
        }
Esempio n. 11
0
        /// <summary>
        /// Gets the level of the given skill.
        /// </summary>
        /// <param name="skill"></param>
        /// <returns></returns>
        public override Int64 GetSkillLevel(StaticSkill skill)
        {
            skill.ThrowIfNull(nameof(skill));

            return Skills[skill.ID].Level;
        }
Esempio n. 12
0
 /// <summary>
 /// Constructor from the static skill object.
 /// </summary>
 /// <param name="skill"></param>
 /// <param name="level"></param>
 public StaticSkillLevel(StaticSkill skill, Int64 level)
 {
     Skill = skill;
     Level = level;
 }
Esempio n. 13
0
 /// <summary>
 /// Constructor from the static skill object.
 /// </summary>
 /// <param name="skill"></param>
 /// <param name="level"></param>
 public StaticSkillLevel(StaticSkill skill, Int64 level)
 {
     Skill = skill;
     Level = level;
 }
Esempio n. 14
0
 /// <summary>
 /// Constructor from the static skill object
 /// </summary>
 /// <param name="skill"></param>
 /// <param name="level"></param>
 public StaticSkillLevel(StaticSkill skill, int level)
     : this()
 {
     this.Skill = skill;
     this.Level = level;
 }