mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 21:51:19 -04:00
Fix compilation errors on my laptop
This commit is contained in:
parent
33a8e30f39
commit
4534697c1e
@ -52,12 +52,31 @@ namespace MCGalaxy.Config {
|
||||
public int MaxLength = 0;
|
||||
|
||||
public ConfigStringAttribute(string name, string section, string desc, string defValue,
|
||||
bool allowEmpty = false, string allowedChars = null, int maxLength = 0)
|
||||
bool allowEmpty, string allowedChars, int maxLength)
|
||||
: base(name, section, desc, defValue) {
|
||||
AllowEmpty = allowEmpty;
|
||||
AllowedChars = allowedChars;
|
||||
MaxLength = maxLength;
|
||||
}
|
||||
|
||||
// NOTE: required to define these, some compilers error when we try using optional parameters with:
|
||||
// "An attribute argument must be a constant expression, typeof expression.."
|
||||
public ConfigStringAttribute(string name, string section, string desc, string defValue,
|
||||
bool allowEmpty, string allowedChars)
|
||||
: base(name, section, desc, defValue) {
|
||||
AllowEmpty = allowEmpty;
|
||||
AllowedChars = allowedChars;
|
||||
}
|
||||
|
||||
public ConfigStringAttribute(string name, string section, string desc, string defValue,
|
||||
bool allowEmpty)
|
||||
: base(name, section, desc, defValue) {
|
||||
AllowEmpty = allowEmpty;
|
||||
}
|
||||
|
||||
public ConfigStringAttribute(string name, string section, string desc, string defValue)
|
||||
: base(name, section, desc, defValue) {
|
||||
}
|
||||
|
||||
public override object Parse(string value) {
|
||||
if (value == "") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user