2022-05-22 15:55:26 +08:00
|
|
|
|
#undef DEBUG
|
2022-05-23 11:10:11 +08:00
|
|
|
|
using System.Windows.Forms;
|
2022-05-22 15:55:26 +08:00
|
|
|
|
namespace RageCoop.Client
|
2021-07-07 13:36:25 +02:00
|
|
|
|
{
|
2021-12-03 20:30:00 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Don't use it!
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class Settings
|
2021-07-07 13:36:25 +02:00
|
|
|
|
{
|
2021-12-04 21:34:43 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Don't use it!
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Username { get; set; } = "Player";
|
2022-07-01 13:54:18 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The password used to authenticate when connecting to a server.
|
|
|
|
|
/// </summary>
|
2022-06-24 10:33:36 +08:00
|
|
|
|
public string Password { get; set; } = "";
|
2021-12-04 21:34:43 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Don't use it!
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string LastServerAddress { get; set; } = "127.0.0.1:4499";
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Don't use it!
|
|
|
|
|
/// </summary>
|
2022-07-11 12:00:25 +08:00
|
|
|
|
public string MasterServer { get; set; } = "https://masterserver.ragecoop.online/";
|
2021-12-08 03:59:14 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Don't use it!
|
|
|
|
|
/// </summary>
|
2021-12-04 21:34:43 +01:00
|
|
|
|
public bool FlipMenu { get; set; } = false;
|
2022-05-22 15:55:26 +08:00
|
|
|
|
|
2022-05-23 09:15:50 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// LogLevel for RageCoop.
|
|
|
|
|
/// 0:Trace, 1:Debug, 2:Info, 3:Warning, 4:Error
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int LogLevel = 2;
|
|
|
|
|
|
2022-05-23 11:10:11 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The key to open menu
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Keys MenuKey { get; set; } = Keys.F9;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The key to enter a vehicle as passenger.
|
|
|
|
|
/// </summary>
|
2022-07-20 17:50:01 +08:00
|
|
|
|
public Keys PassengerKey { get; set; } = Keys.G;
|
2022-05-22 15:55:26 +08:00
|
|
|
|
|
2022-05-25 10:09:59 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Disable world NPC traffic, mission entities won't be affected
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool DisableTraffic { get; set; } = true;
|
|
|
|
|
|
2022-05-25 11:32:34 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Bring up pause menu but don't freeze time when FrontEndPauseAlternate(Esc) is pressed.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool DisableAlternatePause { get; set; } = true;
|
|
|
|
|
|
2022-05-25 21:54:25 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The game won't spawn more NPC traffic if the limit is exceeded. -1 for unlimited (not recommended).
|
|
|
|
|
/// </summary>
|
2022-07-17 11:15:02 +08:00
|
|
|
|
public int WorldVehicleSoftLimit { get; set; } = 20;
|
2022-07-01 12:22:31 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The game won't spawn more NPC traffic if the limit is exceeded. -1 for unlimited (not recommended).
|
|
|
|
|
/// </summary>
|
2022-07-17 11:15:02 +08:00
|
|
|
|
public int WorldPedSoftLimit { get; set; } = 30;
|
2022-07-01 19:02:38 +08:00
|
|
|
|
/// <summary>
|
2022-07-02 13:53:14 +08:00
|
|
|
|
/// The directory where log and resources downloaded from server will be placed.
|
2022-07-01 19:02:38 +08:00
|
|
|
|
/// </summary>
|
2022-07-02 13:53:14 +08:00
|
|
|
|
public string DataDirectory { get; set; } = "Scripts\\RageCoop\\Data";
|
2021-07-07 13:36:25 +02:00
|
|
|
|
}
|
|
|
|
|
}
|