bool GetLevelBoolean() { string levelName = icon.level.name; switch (specialType) { case SpecialType.Regular: return(MadLevelProfile.GetLevelBoolean(levelName, name)); case SpecialType.LevelNumber: return(MadLevelProfile.GetLevelBoolean(levelName, name)); case SpecialType.Locked: return(MadLevelProfile.IsLocked(levelName)); case SpecialType.Completed: return(MadLevelProfile.IsCompleted(levelName)); default: MadDebug.Assert(false, "Unknown special type: " + specialType); return(false); } }