- implemented basic competition mode that comes with a few restrictions.

This commit is contained in:
Dorian Zedler 2020-08-03 20:02:42 +02:00
parent e3cea06558
commit b904566977
Signed by: dorian
GPG key ID: D3B255CB8BC7CD37
2 changed files with 6 additions and 3 deletions

View file

@ -127,7 +127,8 @@ public:
SettingNotAccessibleError = 901,
InternalError = 950,
InternalErrorTimerOperationFailed = 951,
ApiVersionNotSupportedError = 952
ApiVersionNotSupportedError = 952,
CompetitionModeProhibitsThisError = 953
};
Q_ENUM(ScStw::StatusCode)

View file

@ -53,7 +53,8 @@ public:
ReadySoundDelaySetting,
AtYourMarksSoundEnableSetting,
AtYourMarksSoundDelaySetting,
SoundVolumeSetting
SoundVolumeSetting,
CompetitionModeSetting
};
Q_ENUM(BaseStationSetting)
@ -86,7 +87,8 @@ public:
{ReadySoundDelaySetting, QVariant::Double},
{AtYourMarksSoundEnableSetting, QVariant::Bool},
{AtYourMarksSoundDelaySetting, QVariant::Double},
{SoundVolumeSetting, QVariant::Double}
{SoundVolumeSetting, QVariant::Double},
{CompetitionModeSetting, QVariant::Bool}
};
if(types.contains(BaseStationSetting(key)))