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); }
public DummyCVar(string name, CVarFlags flags = 0, CVar init = null) : base(name, flags) { val = init; }