forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOtherConfig.cs
More file actions
56 lines (48 loc) · 2.83 KB
/
Copy pathOtherConfig.cs
File metadata and controls
56 lines (48 loc) · 2.83 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
using Newtonsoft.Json;
using System.ComponentModel;
namespace L2dotNET.Config
{
///<summary>Other Config.</summary>
public class OtherConfig
{
///<summary>Maximum amount of characters that can be created for an account.</summary>
[DefaultValue(8)]
[JsonProperty(PropertyName = "MaxCharactersByAccount", DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public int MaxCharactersByAccount { get; set; }
///<summary>Check if the character creation is blocked.</summary>
[DefaultValue(false)]
[JsonProperty(PropertyName = "CharCreationBlocked", DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public bool CharCreationBlocked { get; set; }
[DefaultValue(new string[] { })]
[JsonProperty(PropertyName = "ForbiddenCharNames", DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public string[] ForbiddenCharNames { get; set; }
// --------------------------------------------------
// Those "hidden" settings haven't configs to avoid admins to fuck their server
// You still can experiment changing values here. But don't say I didn't warn you.
// --------------------------------------------------
/** Threads & Packets size */
public const int ThreadPEffects = 6; // default 6
public const int ThreadPGeneral = 15; // default 15
public const int GeneralPacketThreadCoreSize = 4; // default 4
public const int IoPacketThreadCoreSize = 2; // default 2
public const int GeneralThreadCoreSize = 4; // default 4
public const int AiMaxThread = 10; // default 10
/** Reserve Host on LoginServerThread */
public const bool ReserveHostOnLogin = false; // default false
/** MMO settings */
public const int MmoSelectorSleepTime = 20; // default 20
public const int MmoMaxSendPerPass = 12; // default 12
public const int MmoMaxReadPerPass = 12; // default 12
public const int MmoHelperBufferCount = 20; // default 20
/** Client Packets Queue settings */
public const int ClientPacketQueueSize = 14; // default MMO_MAX_READ_PER_PASS + 2
public const int ClientPacketQueueMaxBurstSize = 13; // default MMO_MAX_READ_PER_PASS + 1
public const int ClientPacketQueueMaxPacketsPerSecond = 80; // default 80
public const int ClientPacketQueueMeasureInterval = 5; // default 5
public const int ClientPacketQueueMaxAveragePacketsPerSecond = 40; // default 40
public const int ClientPacketQueueMaxFloodsPerMin = 2; // default 2
public const int ClientPacketQueueMaxOverflowsPerMin = 1; // default 1
public const int ClientPacketQueueMaxUnderflowsPerMin = 1; // default 1
public const int ClientPacketQueueMaxUnknownPerMin = 5; // default 5
}
}