Client LuaCsForBarotrauma
ServerProvider.cs
1 #nullable enable
2 using System;
4 
5 namespace Barotrauma
6 {
7  abstract class ServerProvider
8  {
9  public void RetrieveServers(Action<ServerInfo, ServerProvider> onServerDataReceived, Action onQueryCompleted)
10  {
11  Cancel();
12  RetrieveServersImpl(onServerDataReceived, onQueryCompleted);
13  }
14  protected abstract void RetrieveServersImpl(Action<ServerInfo, ServerProvider> action, Action onQueryCompleted);
15  public abstract void Cancel();
16  }
17 }
void RetrieveServers(Action< ServerInfo, ServerProvider > onServerDataReceived, Action onQueryCompleted)
abstract void Cancel()
abstract void RetrieveServersImpl(Action< ServerInfo, ServerProvider > action, Action onQueryCompleted)