Skip to content

Commit

Permalink
adding fields for FAForever#894
Browse files Browse the repository at this point in the history
  • Loading branch information
K-ETFreeman committed Dec 28, 2024
1 parent fbfbd04 commit ba7903f
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ public class MatchmakerQueueMapPool extends AbstractEntity<MatchmakerQueueMapPoo
private Double minRating;
private Double maxRating;
private MapPool mapPool;
// Veto system fields
private Integer vetoTokensPerPlayer;
private Integer maxTokensPerMap;
private Float minimalMapsAllowed;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "matchmaker_queue_id")
Expand Down Expand Up @@ -57,4 +61,22 @@ public Double getMaxRating() {
public MapPool getMapPool() {
return mapPool;
}

@Column(name = "veto_tokens_per_player")
@UpdatePermission(expression = WriteMatchmakerMapCheck.EXPRESSION)
public Integer getVetoTokensPerPlayer() {
return vetoTokensPerPlayer;
}

@Column(name = "max_tokens_per_map")
@UpdatePermission(expression = WriteMatchmakerMapCheck.EXPRESSION)
public Integer getMaxTokensPerMap() {
return maxTokensPerMap;
}

@Column(name = "minimal_maps_allowed")
@UpdatePermission(expression = WriteMatchmakerMapCheck.EXPRESSION)
public Float getMinimalMapsAllowed() {
return minimalMapsAllowed;
}
}

0 comments on commit ba7903f

Please sign in to comment.