multigp_toolkit.enums#
Custom Enums
Classes#
Common request methods |
|
MultiGP Schedule types |
|
Define the standard variables for an imported race format |
|
Default formats for MultiGP |
Module Contents#
- class multigp_toolkit.enums.RequestAction#
Bases:
str,enum.EnumCommon request methods
- GET = 'GET'#
Represents a GET action
- POST = 'POST'#
Represents a POST action
- PUT = 'PUT'#
Represents a PUT action
- PATCH = 'PATCH'#
Represents a PATCH action
- DELETE = 'DELETE'#
Represents a DELETE action
- class multigp_toolkit.enums.MGPMode#
Bases:
str,enum.EnumMultiGP Schedule types
- PREDEFINED_HEATS = '0'#
Standard type. Formerly known as CONTROLLED mode
- ZIPPYQ = '1'#
MultiGP’s custom queueing mode
- BRACKET = '2'#
Setting for custom bracket results. Expects 1 round per heat
- class multigp_toolkit.enums.MGPFormat#
Define the standard variables for an imported race format
- format_name: str#
Name of the format
- win_condition: RHRace.WinCondition#
Win condition of the format
- mgp_gq: bool = False#
Flag marking the format to be used for Global Qualifiers
- race_time_sec: int = 120#
The default time in seconds for the format
- unlimited_time: bool = False#
Allow unlimited time for the format
- start_behavior: RHRace.StartBehavior#
Start behavior for the format
- team_racing_mode: bool = False#
Team racing enabled for the format
- class multigp_toolkit.enums.DefaultMGPFormats(*args, **kwds)#
Bases:
MGPFormat,enum.EnumDefault formats for MultiGP
- AGGREGATE#
Most laps in race
- FASTEST#
Fastest lap in race
- CONSECUTIVE#
Fastest Consecutive laps in race
- GLOBAL#
CONSECUTIVE with Global Qualifer features enabled.
This format needs to be hardcoded until there is a way to lock format changes in the user interface.