Exemple #1
0
        internal static void RegisterCVar(CVar var)
        {
            if (cvarList.Exists(v => v.Name == var.Name))
            {
                throw new ConsoleException(String.Format("Cannot add CVar - a CVar with the name {0} already exists", var.Name));
            }

            cvarList.Add(var);
        }
Exemple #2
0
 public DummyCVar(string name, CVarFlags flags = 0, CVar init = null) :
     base(name, flags)
 {
     val = init;
 }