コード例 #1
0
ファイル: Skill.cs プロジェクト: stravant/UniCircleDifficulty
        /// <summary>
        /// Processes <see cref="DifficultyPoint"/> and calculates difficulty
        /// </summary>
        /// <param name="diffPoint"></param>
        protected void ProcessDifficultyPoint(TDiffPoint diffPoint)
        {
            // Update diffpoint pool
            UpdateDifficultyPoints(diffPoint);

            // Calculate difficulty of point and add to list
            CalculateDifficulty();
            CalculatedPoints.Add(diffPoint);
        }
コード例 #2
0
ファイル: Skill.cs プロジェクト: stravant/UniCircleDifficulty
 /// <summary>
 /// Resets skill to default state
 /// </summary>
 public virtual void Reset()
 {
     CurrentDiffPoints.Clear();
     CalculatedPoints.Clear();
 }