MassEffect3.Coalesce.CoalesceAsset.Combine C# (CSharp) Method

Combine() public method

public Combine ( CoalesceAsset asset ) : void
asset CoalesceAsset
return void
		public void Combine(CoalesceAsset asset)
		{
			if (asset == null)
			{
				throw new ArgumentNullException(nameof(asset));
			}

			foreach (var section in asset.Sections)
			{
				if (!Sections.ContainsKey(section.Key))
				{
					Sections.Add(section.Key, section.Value);
				}
				else
				{
					Sections[section.Key].Combine(section.Value);
				}
			}
		}