Topographer.Renderer.GetRegionCount C# (CSharp) Method

GetRegionCount() public static method

public static GetRegionCount ( String regionDir ) : int
regionDir String
return int
        public static int GetRegionCount(String regionDir)
        {
            try
            {
                return Directory.GetFiles(regionDir, "*.mca", SearchOption.TopDirectoryOnly).Length;
            }
            catch (DirectoryNotFoundException)
            {
                return 0;
            }
        }