Category5.XmlSettingsFile.getLevelConfig C# (CSharp) Method

getLevelConfig() public static method

public static getLevelConfig ( int levelNum ) : LevelConfig
levelNum int
return LevelConfig
        public static LevelConfig getLevelConfig(int levelNum)
        {
            if (levelNum < 0 || levelNum > levelConfigs.Count - 1)
            {
                throw new ApplicationException("XMLSettingsFile.getLevelFile: Attempted to retrieve level file for an undefined level number '" + levelNum + "' ");
            }
            else
            {
                return levelConfigs[levelNum];
            }
        }