This is a dictionary class that tracks an arbitrary number of key / value pair combinations. It is used for map entity spawning, GUI state management, and other things.
Keys are compared case-insensitive.
예제 #1
0
        public void TransferKeyValues(idDict source)
        {
            _dict.Clear();

            foreach (KeyValuePair <string, string> kvp in source._dict)
            {
                _dict.Add(kvp.Key, kvp.Value);
            }
        }
예제 #2
0
 /// <summary>
 /// Copy key/value pairs from other another dict not present in this instance.
 /// </summary>
 /// <param name="dict"></param>
 public void SetDefaults(idDict dict)
 {
     foreach (KeyValuePair <string, string> kvp in dict._dict)
     {
         if (_dict.ContainsKey(kvp.Key) == false)
         {
             _dict.Add(kvp.Key, kvp.Value);
         }
     }
 }
예제 #3
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());
                }
            }
        }
예제 #4
0
			public idUserCommand[] MapSpawnUserCommand = new idUserCommand[idE.MaxAsynchronousClients]; // needed for tracking delta angles
		
			public MapSpawnData()
			{
				for(int i = 0; i < idE.MaxAsynchronousClients; i++)
				{
					UserInformation[i] = new idDict();
					PersistentPlayerInformation[i] = new idDict();
					MapSpawnUserCommand[i] = new idUserCommand();
				}
			}
예제 #5
0
		public void TransferKeyValues(idDict source)
		{
			_dict.Clear();

			foreach(KeyValuePair<string, string> kvp in source._dict)
			{
				_dict.Add(kvp.Key, kvp.Value);
			}
		}
예제 #6
0
		/// <summary>
		/// Copy key/value pairs from other another dict not present in this instance.
		/// </summary>
		/// <param name="dict"></param>
		public void SetDefaults(idDict dict)
		{
			foreach(KeyValuePair<string, string> kvp in dict._dict)
			{
				if(_dict.ContainsKey(kvp.Key) == false)
				{
					_dict.Add(kvp.Key, kvp.Value);
				}
			}
		}
예제 #7
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());
				}
			}
		}