diff options
| author | coco875 <59367621+coco875@users.noreply.github.com> | 2025-12-20 00:14:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-19 16:14:29 -0700 |
| commit | a925d0fa2f814eeb2e780d304e89972c67171c92 (patch) | |
| tree | 17a063ff8db9423bcef11d7662503b7137678825 /src/engine/Cup.h | |
| parent | 67536f525a8ffab2d8afef945a3d23d1e2b4411f (diff) | |
make id of cup more robust and fix a mistake (#604)
* fix id koopa troopa beach
* make id of cup more robust
Diffstat (limited to 'src/engine/Cup.h')
| -rw-r--r-- | src/engine/Cup.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/engine/Cup.h b/src/engine/Cup.h index 82f1e6aab..9ce5f2045 100644 --- a/src/engine/Cup.h +++ b/src/engine/Cup.h @@ -4,6 +4,7 @@ #include <vector> #include <memory> #include "tracks/Track.h" +#include "registry/Registry.h" class Track; // <-- Forward declare @@ -17,6 +18,9 @@ public: explicit Cup(std::string id, const char* name, std::vector<std::string> tracks); + // Valide que tous les IDs de tracks existent dans le registre + void ValidateTrackIds(const Registry<TrackInfo>& registry) const; + virtual void ShuffleTracks(); virtual void Next(); |
