Clear() public method

public Clear ( ) : void
return void
示例#1
0
        public void CopyCvarsToDictionary(idDict dict, CvarFlags flags)
        {
            dict.Clear();

            foreach (KeyValuePair <string, idInternalCvar> cvar in _cvarList)
            {
                if ((cvar.Value.Flags & flags) != 0)
                {
                    dict.Set(cvar.Value.Name, cvar.ToString());
                }
            }
        }
示例#2
0
		public void CopyCvarsToDictionary(idDict dict, CvarFlags flags)
		{
			dict.Clear();

			foreach(KeyValuePair<string, idInternalCvar> cvar in _cvarList)
			{
				if((cvar.Value.Flags & flags) != 0)
				{
					dict.Set(cvar.Value.Name, cvar.ToString());
				}
			}
		}