Resolve WES-192 "Fix progress screen"

This commit is contained in:
Dries Van Schuylenbergh
2023-05-04 09:09:49 +00:00
parent 259259ac9c
commit 89f343780a
34 changed files with 4330 additions and 496 deletions

View File

@@ -40,13 +40,13 @@ public class User
/// <summary>
/// Get a list of all recently started courses
/// Get a list of all recently started minigameCards
/// </summary>
/// <returns>A <c>List</c> of <c>Tuples</c>, containing the <c>CourseIndex</c>
/// and a <c>float</c> holding the progress (value between 0 and 1) of the user in this course</returns>
public List<Tuple<CourseIndex, float>> GetRecentCourses()
{
// TODO: return better results (for now only return all courses)
// TODO: return better results (for now only return all minigameCards)
List<Tuple<CourseIndex, float>> recentCourses = new List<Tuple<CourseIndex, float>>();
foreach (var courseProgress in storedUserData.courses)
{
@@ -58,7 +58,7 @@ public class User
}
/// <summary>
/// Get a list of all recommended courses
/// Get a list of all recommended minigameCards
/// </summary>
/// <returns>A <c>List</c> of <c>Tuples</c>, containing the <c>CourseIndex</c>
/// and a <c>float</c> holding the progress (value between 0 and 1) of the user in this course</returns>
@@ -71,7 +71,7 @@ public class User
}
else
{
// TODO: return better results (for now only return all courses)
// TODO: return better results (for now only return all minigameCards)
foreach (var courseProgress in storedUserData.courses)
{
CourseIndex idx = courseProgress.courseIndex;
@@ -83,7 +83,7 @@ public class User
}
/// <summary>
/// Get the progress of all courses the user did
/// Get the progress of all minigameCards the user did
/// </summary>
/// <returns></returns>
public List<SavedCourseProgress> GetCourses()