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

ClearTab() публичный Метод

Removes all items from tab.
This, just like adding items at run-time, does not live update the currently open shops. Afaik it's not on officials either, but it would be possible, if we create a list of open shop instances and use the clear and fill shop packets.
public ClearTab ( string tabTitle ) : bool
tabTitle string
Результат bool
		public bool ClearTab(string tabTitle)
		{
			NpcShopTab tab;
			lock (_tabs)
				_tabs.TryGetValue(tabTitle, out tab);

			if (tab == null)
				return false;

			tab.Clear();

			return true;
		}