Skip to content

Commit

Permalink
adding fields for #894
Browse files Browse the repository at this point in the history
  • Loading branch information
K-ETFreeman committed Oct 12, 2024
1 parent 4fc50f1 commit 2868bcb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ dependencies {
implementation("com.yahoo.elide:elide-datastore-jpa:${elideVersion}")
implementation("com.yahoo.elide:elide-datastore-multiplex:${elideVersion}")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:${springdocVersion}")
implementation("com.github.FAForever:faf-java-commons:0e5d22ffff6e4dea81bac494d532627fcca8ebc4")
implementation("com.github.FAForever:faf-java-commons:bc0a20692e599cccb618e0c4346407a13e44464a")
implementation("org.kohsuke:github-api:1.323")
implementation("org.eclipse.jgit:org.eclipse.jgit:6.10.0.202406032230-r")
implementation("org.jetbrains:annotations:24.1.0")
Expand Down
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 2868bcb

Please sign in to comment.