-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathServerDto.ts
More file actions
100 lines (93 loc) · 2.72 KB
/
ServerDto.ts
File metadata and controls
100 lines (93 loc) · 2.72 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import {ReforgerModDto} from "./ReforgerModDto.ts";
import {ServerWorkshopModDto} from "./ServerWorkshopModDto.ts";
import {CreatorDlcDto} from "./CreatorDlcDto.ts";
import {AutomaticRestartDto} from "./AutomaticRestartDto.ts";
export enum ServerType {
ARMA3 = 'ARMA3',
REFORGER = 'REFORGER',
DAYZ = 'DAYZ',
DAYZ_EXP = 'DAYZ_EXP'
}
export interface ServerDto {
type: string,
id?: number,
name: string,
description: string,
port: number,
queryPort: number,
password: string,
adminPassword: string,
maxPlayers: number
customLaunchParameters: Array<{name: string, value: string | null}>
automaticRestart: AutomaticRestartDto
}
export interface Arma3ServerDto extends ServerDto {
clientFilePatching: boolean,
serverFilePatching: boolean,
persistent: boolean,
battlEye: boolean,
vonEnabled: boolean,
verifySignatures: boolean,
activeMods: Array<ServerWorkshopModDto>,
activeDLCs: Array<CreatorDlcDto>,
scenarioRotation: string,
additionalOptions: string,
difficultySettings: Arma3DifficultySettings,
networkSettings: Arma3NetworkSettings | null
}
export interface Arma3DifficultySettings {
groupIndicators: 0 | 1 | 2,
friendlyTags: 0 | 1 | 2,
enemyTags: 0 | 1 | 2,
detectedMines: 0 | 1 | 2,
commands: 0 | 1 | 2,
waypoints: 0 | 1 | 2,
weaponInfo: 0 | 1 | 2,
stanceIndicator: 0 | 1 | 2,
thirdPersonView: 0 | 1 | 2,
tacticalPing: 0 | 1 | 2 | 3,
reducedDamage: boolean,
staminaBar: boolean,
weaponCrosshair: boolean,
visionAid: boolean,
scoreTable: boolean,
deathMessages: boolean,
vonID: boolean,
mapContent: boolean,
autoReport: boolean,
cameraShake: boolean,
aiLevelPreset: number,
skillAI: number,
precisionAI: number
}
export interface Arma3NetworkSettings {
maxMessagesSend: number | null
maxSizeGuaranteed: number | null
maxSizeNonguaranteed: number | null
minBandwidth: number | null
maxBandwidth: number | null
maxCustomFileSize: number | null
minErrorToSend: number | null
minErrorToSendNear: number | null
maxPacketSize: number | null
}
export interface DayZServerDto extends ServerDto {
clientFilePatching: boolean,
persistent: boolean,
verifySignatures: boolean,
vonEnabled: boolean,
forceSameBuild: boolean,
thirdPersonViewEnabled: boolean,
crosshairEnabled: boolean,
respawnTime: number,
timeAcceleration: number,
nightTimeAcceleration: number,
activeMods: Array<ServerWorkshopModDto>,
additionalOptions: string
}
export interface ReforgerServerDto extends ServerDto {
scenarioId: string,
battlEye: boolean,
thirdPersonViewEnabled: boolean,
activeMods: Array<ReforgerModDto>
}