feat(battle-node): IMatchingBridge + MatchingBridge mint battle id + node url

This commit is contained in:
gamer147
2026-05-31 22:31:04 -04:00
parent 680630050b
commit d3c4b3083e
4 changed files with 80 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
namespace SVSim.BattleNode.Bridge;
public interface IMatchingBridge
{
/// <summary>
/// Mint a battle id, register a pending session for the given viewer, and return the
/// URL the client should open a socket to.
/// </summary>
PendingMatch RegisterPendingBattle(long viewerId);
}
public sealed record PendingMatch(string BattleId, string NodeServerUrl);