示例#1
0
 public INIVariableDef(string var, string section, string variable, INIVariableType type, string defValue, Dictionary <string, double> dict, double min, double max)
 {
     this.var       = var;
     this.section   = section;
     this.key       = variable;
     this.type      = type;
     this.boolType  = INIBoolType.Text;
     this.defValue  = defValue;
     this.dict      = dict;
     this.min       = min;
     this.max       = max;
     this.precision = -1;
     this.useMinMax = true;
 }
示例#2
0
 public INIVariableDef(string var, string section, string variable, INIVariableType type, string defValue)
 {
     this.var       = var;
     this.section   = section;
     this.key       = variable;
     this.type      = type;
     this.boolType  = INIBoolType.Text;
     this.defValue  = defValue;
     this.dict      = (type == INIVariableType.Boolean ? INIBools : null);
     this.min       = 0;
     this.max       = 0;
     this.precision = -1;
     this.useMinMax = false;
 }
示例#3
0
 public INIVariableDef(string var, string section, string variable, INIVariableType type, string defValue, double min, double max, sbyte precision)
 {
     this.var       = var;
     this.section   = section;
     this.key       = variable;
     this.type      = type;
     this.boolType  = INIBoolType.Text;
     this.defValue  = defValue;
     this.dict      = (type == INIVariableType.Boolean ? INIBools : null);
     this.min       = min;
     this.max       = max;
     this.precision = precision;
     this.useMinMax = true;
 }
示例#4
0
 public INIVariableDef(string section, string defValue)
 {
     this.var       = null;
     this.section   = section;
     this.key       = null;
     this.type      = INIVariableType.None;
     this.boolType  = INIBoolType.Text;
     this.defValue  = defValue;
     this.dict      = null;
     this.min       = 0;
     this.max       = 0;
     this.precision = -1;
     this.useMinMax = false;
 }
示例#5
0
 public INIVariableDef(string var, string section, string variable, INIVariableType type, string defValue, Dictionary<string, double> dict, double min, double max)
 {
     this.var = var;
     this.section = section;
     this.key = variable;
     this.type = type;
     this.boolType = INIBoolType.Text;
     this.defValue = defValue;
     this.dict = dict;
     this.min = min;
     this.max = max;
     this.precision = -1;
     this.useMinMax = true;
 }
示例#6
0
 public INIVariableDef(string var, string section, string variable, INIVariableType type, string defValue, double min, double max, sbyte precision)
 {
     this.var = var;
     this.section = section;
     this.key = variable;
     this.type = type;
     this.boolType = INIBoolType.Text;
     this.defValue = defValue;
     this.dict = (type == INIVariableType.Boolean ? INIBools : null);
     this.min = min;
     this.max = max;
     this.precision = precision;
     this.useMinMax = true;
 }
示例#7
0
 public INIVariableDef(string var, string section, string variable, INIVariableType type, string defValue)
 {
     this.var = var;
     this.section = section;
     this.key = variable;
     this.type = type;
     this.boolType = INIBoolType.Text;
     this.defValue = defValue;
     this.dict = (type == INIVariableType.Boolean ? INIBools : null);
     this.min = 0;
     this.max = 0;
     this.precision = -1;
     this.useMinMax = false;
 }
示例#8
0
 public INIVariableDef(string section, string defValue)
 {
     this.var = null;
     this.section = section;
     this.key = null;
     this.type = INIVariableType.None;
     this.boolType = INIBoolType.Text;
     this.defValue = defValue;
     this.dict = null;
     this.min = 0;
     this.max = 0;
     this.precision = -1;
     this.useMinMax = false;
 }