Пример #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;
        }
Пример #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);
        }
Пример #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;
 }
Пример #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;
 }
Пример #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;
 }
Пример #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;
 }
Пример #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)
 {
 }
Пример #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;
 }
Пример #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;
 }
Пример #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;
        }
Пример #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;
        }
Пример #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;
 }
Пример #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;
 }
Пример #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;
 }