Scripts/Customs/Nerun's Distro/New/Commands/Toolbar.cs
/// <summary>
/// Reads the information in the persistance item and exports it into a new ToolbarInfo class.
/// </summary>
Reads the information in the persistance item and exports it into a new ToolbarInfo class.
Reads the information in the persistance item and exports it into a new ToolbarInfo class .
public static void ReadInfo(Mobile mob, out ToolbarInfo info)
		{
			EnsureMaxed( mob );
			Account acc = mob.Account as Account;
			info = null;
			for(int i = 0; i < ToolbarHelper.Infos.Info.Count; i++)
			{
				if(ToolbarHelper.Infos.Info[i].Account == acc.Username)
					info = ToolbarHelper.Infos.Info[i];
			}
			if(info == null)
				info = ToolbarInfo.CreateNew(mob, acc);
		}
public static void ReadInfo ( Mobile mob , out ToolbarInfo info ) { EnsureMaxed ( mob ) ; Account acc = mob . Account as Account ; info = null ; for ( int i = 0 ; i < ToolbarHelper . Infos . Info . Count ; i ++ ) { if ( ToolbarHelper . Infos . Info [ i ] . Account == acc . Username ) info = ToolbarHelper . Infos . Info [ i ] ; } if ( info == null ) info = ToolbarInfo . CreateNew ( mob , acc ) ; }
Reads the information in the persistance item and exports it into a new ToolbarInfo class.
Reads the information in the persistance item and exports it into a new ToolbarInfo class .
mob
Mobile
ToolbarInfo
out