コード例 #1
0
        /// <summary>
        /// Updates the statistics for the plan editor.
        /// </summary>
        /// <param name="plan"></param>
        /// <param name="areRemappingPointsActive"></param>
        public void UpdateStatistics(BasePlan plan, out bool areRemappingPointsActive)
        {
            areRemappingPointsActive = m_areRemappingPointsActive;

            if (m_areRemappingPointsActive)
            {
                plan.UpdateStatistics(new CharacterScratchpad(m_character), true, true);
                plan.UpdateOldTrainingTimes(new CharacterScratchpad(m_character), false, true);
            }
            else
            {
                plan.UpdateStatistics(m_statisticsScratchpad.Clone(), false, true);
                plan.UpdateOldTrainingTimes(new CharacterScratchpad(m_character), true, true);
            }
        }
コード例 #2
0
        /// <summary>
        /// Updates the statistics for the plan editor.
        /// </summary>
        /// <param name="plan"></param>
        /// <param name="areRemappingPointsActive"></param>
        /// <exception cref="System.ArgumentNullException">plan</exception>
        public void UpdateStatistics(BasePlan plan, out bool areRemappingPointsActive)
        {
            plan.ThrowIfNull(nameof(plan));

            areRemappingPointsActive = m_areRemappingPointsActive;

            if (m_areRemappingPointsActive)
            {
                plan.UpdateStatistics(new CharacterScratchpad(m_baseCharacter.After(plan.ChosenImplantSet)), true, true);
            }
            else
            {
                plan.UpdateStatistics(m_statisticsScratchpad.Clone(), false, true);
            }

            plan.UpdateOldTrainingTimes(new CharacterScratchpad(m_baseCharacter.After(plan.ChosenImplantSet)), false,
                                        true);
        }