summaryrefslogtreecommitdiff
path: root/Impostor-dev/src/Impostor.Server/Extensions/NodeLocatorExtensions.cs
blob: 370bca6208f0b9c1eb1102f22d3b9b4247bd1d12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
using System.Threading.Tasks;
using Impostor.Server.Net.Redirector;

namespace Impostor.Server
{
    public static class NodeLocatorExtensions
    {
        public static async ValueTask<bool> ExistsAsync(this INodeLocator nodeLocator, string gameCode)
        {
            return await nodeLocator.FindAsync(gameCode) != null;
        }
    }
}