Aura.Channel.Scripting.Scripts.NpcShopScript.GetOrCreateTab C# (CSharp) Метод

GetOrCreateTab() защищенный Метод

Returns the given tab, after creating if necessary.
protected GetOrCreateTab ( string tabTitle ) : NpcShopTab
tabTitle string
Результат NpcShopTab
		protected NpcShopTab GetOrCreateTab(string tabTitle)
		{
			NpcShopTab tab;
			lock (_tabs)
				_tabs.TryGetValue(tabTitle, out tab);

			if (tab == null)
				tab = this.Add(tabTitle);

			return tab;
		}