feat(arena-tk2): do_matching mints battle via IMatchingBridge, returns 3004

This commit is contained in:
gamer147
2026-05-31 22:53:20 -04:00
parent 88ed8254af
commit ff51c33b6c
3 changed files with 34 additions and 12 deletions

View File

@@ -5,23 +5,26 @@ using SVSim.EmulatedEntrypoint.Models.Dtos.Common;
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Responses.ArenaTwoPick;
[MessagePackObject]
public class DoMatchingResponseDto
public sealed class DoMatchingResponseDto
{
[JsonPropertyName("matching_state")] [Key("matching_state")]
public int MatchingState { get; set; } = 3004; // SUCCEEDED
[JsonPropertyName("timeout_period")] [JsonConverter(typeof(StringifiedIntConverter))] [Key("timeout_period")]
public int TimeoutPeriod { get; set; } = 50;
public int TimeoutPeriod { get; set; } = 30;
[JsonPropertyName("retry_period")] [JsonConverter(typeof(StringifiedIntConverter))] [Key("retry_period")]
public int RetryPeriod { get; set; } = 3;
[JsonPropertyName("battle_id")] [Key("battle_id")]
public string BattleId { get; set; } = "";
[JsonPropertyName("node_server_url")] [Key("node_server_url")]
public string NodeServerUrl { get; set; } = "";
[JsonPropertyName("room_param")] [Key("room_param")]
public string RoomParam { get; set; } = "";
[JsonPropertyName("matching_state")] [Key("matching_state")]
public int MatchingState { get; set; } = 3002;
[JsonPropertyName("mission_parameter")] [Key("mission_parameter")]
public Dictionary<string, string> MissionParameter { get; set; } = new()
{