Server.Commands.DecorationList.ReadAll C# (CSharp) Méthode

ReadAll() public static méthode

public static ReadAll ( string path ) : ArrayList
path string
Résultat System.Collections.ArrayList
		public static ArrayList ReadAll( string path )
		{
			using ( StreamReader ip = new StreamReader( path ) )
			{
				ArrayList list = new ArrayList();

				for ( DecorationList v = Read( ip ); v != null; v = Read( ip ) )
					list.Add( v );

				return list;
			}
		}

Usage Example

Exemple #1
0
        public static void Generate( string folder, params Map[] maps )
        {
            if ( !Directory.Exists( folder ) )
                return;

            string[] files = Directory.GetFiles( folder, "*.cfg" );

            for ( int i = 0; i < files.Length; ++i )
            {
                ArrayList list = DecorationList.ReadAll( files[i] );

                for ( int j = 0; j < list.Count; ++j )
                    m_Count += ((DecorationList)list[j]).Generate( maps );
            }
        }
All Usage Examples Of Server.Commands.DecorationList::ReadAll