Round entity defines a stage of the tournament (e.g., “Round of 16”, “Qualifiers”, “Grand Finals”). It encapsulates the rules, ban system, best-of format, and the map pool for that stage.
Class Definition
Namespace:ss.Internal.Management.Server.AutoRef
Table: rounds
Source: /home/daytona/workspace/source/ss.Integrated.Management.Server/Database/Models.cs:234
Properties
The unique identifier for the round.Column:
id (Primary Key)The human-readable name for this tournament stage.Examples: “Qualifiers”, “Round of 16”, “Quarterfinals”, “Grand Finals”Column:
nameThe number of bans allowed per team in this round.
0: No bans (typically qualifiers)1: Each team bans 1 map2: Each team bans 2 maps
ban_roundsThe maximum number of maps that can be played (e.g., 7 for Best of 7).Winner is first to reach
(BestOf + 1) / 2 points.Examples:BestOf = 5: First to 3 winsBestOf = 7: First to 4 winsBestOf = 9: First to 5 wins
best_ofThe list of beatmaps available to be picked in this round.Stored as JSON in the database. See RoundBeatmap structure.Column:
map_poolStorage: JSON arrayEnumerations
BansType Enum
Defines the ban strategy for a round. Source:/home/daytona/workspace/source/ss.Integrated.Management.Server/Database/Models.cs:103
Standard snake draft or fixed ban order used in Spanish Showdown format.
Alternative ban format.
MatchType Enum
Differentiates between tournament modes. Source:/home/daytona/workspace/source/ss.Integrated.Management.Server/Database/Models.cs:113
Head-to-head matches between teams with picks and bans.
Individual players competing on a fixed map pool.
Nested Types
RoundBeatmap Structure
Defines a beatmap in the round’s map pool. Source:/home/daytona/workspace/source/ss.Integrated.Management.Server/Database/Models.cs:391
The osu! beatmap ID from
https://osu.ppy.sh/beatmaps/{BeatmapID}The mod bracket and position identifier.Common formats:
NM1,NM2,NM3, … (No Mod)HD1,HD2, … (Hidden)HR1,HR2, … (Hard Rock)DT1,DT2, … (Double Time)FM1,FM2, … (Free Mod)TB1(Tiebreaker)
RoundChoice Structure
Records a pick or ban action during a match. Used by MatchRoom. Source:/home/daytona/workspace/source/ss.Integrated.Management.Server/Database/Models.cs:397
References a slot from the round’s MapPool (e.g., “NM1”, “HD2”).
Which team picked or banned this map.
Which team won this map (only used for picks, not bans).
Usage Examples
Creating a Qualifier Round
Creating an Elimination Round
Querying a Round with Map Pool
Finding Matches in a Round
Map Pool Validation
When validating picks and bans, check against the round’s MapPool:Related Models
- MatchRoom - Elimination matches governed by this round
- QualifierRoom - Qualifier lobbies using this round’s map pool
- ScoreResults - Individual scores associated with this round