ReadAll() public static method

public static ReadAll ( string path ) : ArrayList
path string
return System.Collections.ArrayList
Exemplo n.º 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 );
            }
        }
Exemplo n.º 2
0
        public static void Generate(string folder, params Map[] maps)
        {
            if (!Directory.Exists(folder))
            {
                return;
            }

            var files = Directory.GetFiles(folder, "*.cfg");

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

                for (var j = 0; j < list.Count; ++j)
                {
                    m_Count += list[j].Generate(maps);
                }
            }
        }
Exemplo n.º 3
0
        private 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)
            {
                List <DecorationList> list = DecorationList.ReadAll(files[i]);

                for (int j = 0; j < list.Count; ++j)
                {
                    _count += list[j].Generate(maps);
                }
            }
        }
Exemplo n.º 4
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]);

                // genova: support uo:ml.
                #region Mondain's Legacy
                m_List = list;
                #endregion

                for (int j = 0; j < list.Count; ++j)
                {
                    m_Count += ((DecorationList)list[j]).Generate(maps);
                }
            }
        }