Initial Implementation of disabling timing windows per player.

This commit is contained in:
teejusb
2021-12-10 00:27:21 -08:00
parent 47a6f625f1
commit c10d8e4eb5
5 changed files with 156 additions and 31 deletions
+8
View File
@@ -9,6 +9,8 @@ struct lua_State;
#define ONE( arr ) { for( unsigned Z = 0; Z < ARRAYLEN(arr); ++Z ) arr[Z]=1.0f; }
#include <set>
#include "GameConstantsAndTypes.h"
#include "PlayerNumber.h"
#include "PrefsManager.h"
@@ -398,6 +400,12 @@ public:
/** @brief The Visual Delay additionally applied on a per-player basis in ms. */
float m_fVisualDelay;
/** @brief The TimingWindow that can be disabled. Valid values are only W1-W5.
* Other values are ignore.
* We use a set instead of unordered_set because we want the ordering so that
* the generated player options string is consistent. */
std::set<TimingWindow> m_twDisabledWindows;
void NextAccel();
void NextEffect();
void NextAppearance();