Server.Commands.VisibilityList.VisList_OnCommand C# (CSharp) Méthode

VisList_OnCommand() private méthode

private VisList_OnCommand ( Server.Commands.CommandEventArgs e ) : void
e Server.Commands.CommandEventArgs
Résultat void
		public static void VisList_OnCommand( CommandEventArgs e )
		{
			if ( e.Mobile is PlayerMobile )
			{
				PlayerMobile pm = (PlayerMobile)e.Mobile;
				List<Mobile> list = pm.VisibilityList;

				if ( list.Count > 0 )
				{
					pm.SendMessage( "You are visible to {0} mobile{1}:", list.Count, list.Count == 1 ? "" : "s" );

					for ( int i = 0; i < list.Count; ++i )
						pm.SendMessage( "#{0}: {1}", i+1, list[i].Name );
				}
				else
				{
					pm.SendMessage( "Your visibility list is empty." );
				}
			}
		}