-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathIceOptions.java
More file actions
71 lines (56 loc) · 2.51 KB
/
Copy pathIceOptions.java
File metadata and controls
71 lines (56 loc) · 2.51 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package com.faforever.iceadapter;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import picocli.CommandLine.Option;
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class IceOptions {
@Option(names = "--id", required = true, description = "set the ID of the local player")
private int id;
@Option(names = "--game-id", required = true, description = "set the ID of the game")
private int gameId;
@Option(names = "--login", required = true, description = "set the login of the local player e.g. \"Rhiza\"")
private String login;
@Option(names = "--rpc-port", defaultValue = "7236", description = "set the port of internal JSON-RPC server")
private int rpcPort;
@Option(names = "--gpgnet-port", defaultValue = "0", description = "set the port of internal GPGNet server")
private int gpgnetPort;
@Option(
names = "--lobby-port",
defaultValue = "0",
description = "set the port the game lobby should use for incoming UDP packets from the PeerRelay")
private int lobbyPort;
@Option(names = "--force-relay", description = "force the usage of relay candidates only")
private boolean forceRelay;
@Option(names = "--debug-window", description = "activate the debug window")
private boolean debugWindow;
@Option(names = "--info-window", description = "activate the info window")
private boolean infoWindow;
@Option(
names = "--delay-ui",
defaultValue = "0",
description = "delays the launch of the info and debug window (in ms)")
private int delayUi;
@Option(
names = "--ping-count",
defaultValue = "1",
description = "number of times to ping each turn server to determine latency")
private int pingCount;
@Option(
names = "--acceptable-latency",
defaultValue = "250.0",
description = "number of times to ping each turn server to determine latency")
private double acceptableLatency;
@Option(
names = "--telemetry-server",
defaultValue = "wss://ice-telemetry.faforever.com",
description = "Telemetry server to connect to")
private String telemetryServer;
@Option(
names = "--lobby-init-mode",
defaultValue = "normal",
description = "lobby mode the game will use. Supported values are 'normal' for normal lobby and 'auto' for automatch lobby (aka ladder).")
private String lobbyInitMode;
}