예제 #1
0
        public async Task <IActionResult> SemiAutoMatchmake([FromBody] SemiAutoMatchmake.Request req)
        {
            await MatchingServerInfo.MultiMatchingServersAsync();

            var requester = new evomatching.ProtocolModels.Matching.SemiAutoMatchmake();

            requester.request = req;
            var res = await requester.PostAsyncXXX(MatchingServerInfo.AreaUri(req.matchingArea.Value));

            return(Ok(res.Payload));
        }
예제 #2
0
        public async Task <IActionResult> ForceMatchmake([FromBody] ForceMatchmake.Request req)
        {
            await MatchingServerInfo.MultiMatchingServersAsync();

            var requester = new evomatching.ProtocolModels.Matching.ForceMatchmake();

            requester.request = req;
            var res = await requester.PostAsyncXXX(MatchingServerInfo.AreaUri(req.matchingArea.Value));

            return(Ok(new ForceMatchmake.Response
            {
                matchingArea = req.matchingArea.Value,
            }));
        }
예제 #3
0
        public async Task <IActionResult> GetEntries([FromBody] GetEntries.Request req)
        {
            await MatchingServerInfo.MultiMatchingServersAsync();

            var requester = new evomatching.ProtocolModels.Matching.GetEntries();
            var res       = await requester.PostAsyncXXX(MatchingServerInfo.AreaUri(req.matchingArea.Value));

            return(Ok(new GetEntries.Response
            {
                entries = res.Payload.entries,
                battleServers = res.Payload.battleServers,
                matchingArea = req.matchingArea.Value,
            }));
        }