Class that groups multiple difficulties together. Useful when you want to have all the difficulties within a game in one place and be able to perform some calculations based off of them.
More...
|
|
List< Difficulty > | Difficulties |
| | The list of difficulties within the set.
|
Class that groups multiple difficulties together. Useful when you want to have all the difficulties within a game in one place and be able to perform some calculations based off of them.
◆ DifficultySet()
| UTheCat.Jumpvalley.Core.Levels.DifficultySet.DifficultySet |
( |
List< Difficulty > | difficulties | ) |
|
|
inline |
Creates a new instance of DifficultySet with an initial list of difficulties.
- Parameters
-
| difficulties | The initial list of difficulties |
◆ GetDifficultyByRating()
| Difficulty UTheCat.Jumpvalley.Core.Levels.DifficultySet.GetDifficultyByRating |
( |
double | rating | ) |
|
|
inline |
Returns the difficulty within the Difficulties list who has the highest difficulty rating less than or equal to the difficulty rating specified in the rating parameter.
- Parameters
-
| rating | The difficulty rating |
- Returns
- The corresponding difficulty
The documentation for this class was generated from the following file: