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); }
public idCvar(string name, string value, string[] valueStrings, string description, ArgCompletion valueCompletion, CvarFlags flags) { Init(name, value, description, 1, -1, valueStrings, flags, valueCompletion); }
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); }