This repository has been archived by the owner on Jan 18, 2022. It is now read-only.
/
RuntimeConfig.cs
44 lines (41 loc) · 1.59 KB
/
RuntimeConfig.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using Improbable.Worker.CInterop;
namespace Improbable.Gdk.Core
{
/// <summary>
/// Default values for connection parameters.
/// </summary>
public static class RuntimeConfigDefaults
{
public const NetworkConnectionType LinkProtocol = NetworkConnectionType.ModularKcp;
public const string LocatorHost = "locator.improbable.io";
public const string ReceptionistHost = "127.0.0.1";
public const string LocalEnvironment = "local";
public const string CloudEnvironment = "cloud";
public const ushort ReceptionistPort = 7777;
public const ushort LocatorPort = 443;
}
/// <summary>
/// Command line argument names for worker and connection configuration.
/// </summary>
public static class RuntimeConfigNames
{
public const string LinkProtocol = "linkProtocol";
public const string LocatorHost = "locatorHost";
public const string LoginToken = "loginToken";
public const string DevAuthTokenKey = "devAuthTokenSecret";
public const string PlayerIdentityToken = "playerIdentityToken";
public const string ReceptionistHost = "receptionistHost";
public const string ReceptionistPort = "receptionistPort";
public const string WorkerId = "workerId";
public const string Environment = "environment";
public const string UseExternalIp = "useExternalIp";
}
/// <summary>
/// An enum listing the available connection services.
/// </summary>
public enum ConnectionService
{
Receptionist,
Locator,
}
}