Example #1
0
        private void Init(string name, string value, string description, float valueMin, float valueMax, string[] valueStrings, CvarFlags flags, ArgCompletion valueCompletion)
        {
            _name            = name;
            _value           = value;
            _flags           = flags | CvarFlags.Static;
            _description     = description;
            _valueMin        = valueMin;
            _valueMax        = valueMax;
            _valueStrings    = valueStrings;
            _valueCompletion = valueCompletion;

            _intValue   = 0;
            _floatValue = 0.0f;

            _internal = this;

            idE.CvarSystem.Register(this);
            //idCvarSystem.StaticList.Add(this);
        }
Example #2
0
		private void Init(string name, string value, string description, float valueMin, float valueMax, string[] valueStrings, CvarFlags flags, ArgCompletion valueCompletion)
		{
			_name = name;
			_value = value;
			_flags = flags | CvarFlags.Static;
			_description = description;
			_valueMin = valueMin;
			_valueMax = valueMax;
			_valueStrings = valueStrings;
			_valueCompletion = valueCompletion;

			_intValue = 0;
			_floatValue = 0.0f;

			_internal = this;

			idE.CvarSystem.Register(this);
			//idCvarSystem.StaticList.Add(this);
		}
Example #3
0
		public idCvar(string name, string value, string[] valueStrings, string description, ArgCompletion valueCompletion, CvarFlags flags)
		{
			Init(name, value, description, 1, -1, valueStrings, flags, valueCompletion);
		}
Example #4
0
		public idCvar(string name, string value, float valueMin, float valueMax, string description, ArgCompletion valueCompletion, CvarFlags flags)
		{
			Init(name, value, description, valueMin, valueMax, null, flags, valueCompletion);
		}
Example #5
0
 public idCvar(string name, string value, string[] valueStrings, string description, ArgCompletion valueCompletion, CvarFlags flags)
 {
     Init(name, value, description, 1, -1, valueStrings, flags, valueCompletion);
 }
Example #6
0
 public idCvar(string name, string value, float valueMin, float valueMax, string description, ArgCompletion valueCompletion, CvarFlags flags)
 {
     Init(name, value, description, valueMin, valueMax, null, flags, valueCompletion);
 }