-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGlobalConstants.cs
45 lines (43 loc) · 2.24 KB
/
GlobalConstants.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
45
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Diagnostics;
namespace RConControl {
public class GlobalConstants {
// Strings
public const string AUTORUN_REGKEY = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Run";
public const string PATH_APPDATA = @"RConControl\";
public const string PATH_CONFIGS = "configs";
public const string PATH_CONFIGS_RESOURCE = ".configs.";
public const string PATH_ERRORLOG = "error.log";
public const string STRING_COMMENT = "//";
public const string RCONCMD_STATUS = "status";
public const string RCONCMD_ZBLOCK = "zb_active";
public const string RCONCMD_MAPS = "maps *";
public const string RCONCMD_CHANGELEVEL = "changelevel {0}";
public const string RCONCMD_KICKID = "kickid {0} {1}";
public const string RCONCMD_ZB_RESTART = "zb_lo3";
public const string RCONCMD_RESTART = "mp_restartgame {0}";
public const string RCONCMD_CHATSAY = "say {0}";
public const string RCONMSG_FILTER_STATUS = "userid";
public const string RCONMSG_FILTER_ZBLOCK = "zBlock";
public const string MAPEXTENSION = ".bsp";
public const string RCON_DEFAULT_KICKMSG = "kicked from server";
public const string RESTARTMSG_HFGL = "HF & GL";
public const string STEAMID_PREFIX = "STEAM_";
public const string RCONCMD_BANID = "banid {0} {1} {2}";
public const string RCONCMD_BANIP = "addip {0} {1}";
public const string RCONCMD_WRITEID = "writeid";
public const string RCONCMD_WRITEIP = "writeip";
public const string HOTKEYID_RESTART = "Restart";
public const string HOTKEYID_LOADCFG = "LoadCFG";
// Values
public const int ERROR_RESET_TIME = 3000; // ms
public const int RCON_RECEIVE_WAIT = 100;
public const int RCON_RECEIVE_TRIES = 10;
public const int RCON_RECONNECT_TRIES = 10;
public const int RCON_CONNECT_TIMEOUT = 5000;
}
}