mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 17:13:44 +00:00
feat(multiplayer): persist ranked arena allocations
This commit is contained in:
@@ -242,6 +242,9 @@ func (c Client) Allocate(ctx context.Context, request domain.AllocationRequest,
|
||||
"cosmic-clash.io/protocol": strconv.Itoa(request.Protocol),
|
||||
"cosmic-clash.io/transport": request.Transport,
|
||||
}
|
||||
if request.ArenaPath != "" {
|
||||
body.Spec.Metadata.Annotations["cosmic-clash.io/arena-path"] = request.ArenaPath
|
||||
}
|
||||
if playlist := labels["cosmic-clash.io/playlist"]; playlist == string(domain.Casual) || playlist == string(domain.Ranked) {
|
||||
body.Spec.Metadata.Annotations["cosmic-clash.io/playlist"] = playlist
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user