Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Dec 10, 2023
1 parent 797d765 commit 1a1e5e1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
10 changes: 5 additions & 5 deletions VortexEngine/src/Menus/MenuList/Randomizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ bool Randomizer::reRollMulti()
}

}

PatternID Randomizer::rollMultiLedPatternID(Random &ctx)
{
return (PatternID)ctx.next8(PATTERN_MULTI_FIRST, PATTERN_MULTI_LAST);
}
#endif

bool Randomizer::reRollSingles()
Expand Down Expand Up @@ -228,11 +233,6 @@ PatternID Randomizer::rollSingleLedPatternID(Random &ctx)
return newPat;
}

PatternID Randomizer::rollMultiLedPatternID(Random &ctx)
{
return (PatternID)ctx.next8(PATTERN_MULTI_FIRST, PATTERN_MULTI_LAST);
}

Colorset Randomizer::rollColorset(Random &ctx)
{
Colorset randomSet;
Expand Down
10 changes: 6 additions & 4 deletions VortexEngine/src/Menus/MenuList/Randomizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,17 @@ class Randomizer : public Menu
// main reRoll functions
#if VORTEX_SLIM == 0
bool reRollMulti();
PatternID rollMultiLedPatternID(Random &ctx);
#endif
bool reRollSingles();

// generate a random colorset with a random context
bool rollCustomPattern(Random &ctx, Mode *pMode, LedPos pos);
PatternID rollSingleLedPatternID(Random &ctx);
PatternID rollMultiLedPatternID(Random &ctx);

// roll a random colorset
Colorset rollColorset(Random &ctx);

// roll a custom pattern by generating random arguments
bool rollCustomPattern(Random &ctx, Mode *pMode, LedPos pos);

// random pattern generators
void traditionalPattern(Random &ctx, PatternArgs &outArgs);
void gapPattern(Random &ctx, PatternArgs &outArgs);
Expand Down

0 comments on commit 1a1e5e1

Please sign in to comment.