Exemplo n.º 1
0
        public override LevelFilterResult FromChatString(string chatString, string option)
        {
            IntComparison comparison = IntComparison.ParseString(chatString, TryParseDifficultyToInt);

            if (comparison != null)
            {
                return(new LevelFilterResult(new LevelFilterDifficulty(comparison)));
            }
            return(new LevelFilterResult("Invalid comparison/number/difficulty for -difficulty"));
        }
Exemplo n.º 2
0
        public override LevelFilterResult FromChatString(string chatString, string option)
        {
            IntComparison comparison = IntComparison.ParseString(chatString);

            if (comparison != null)
            {
                return(new LevelFilterResult(new LevelFilterIndex(comparison)));
            }
            return(new LevelFilterResult("Invalid comparison/number for -index"));
        }
Exemplo n.º 3
0
 public LevelFilterIndex(IntComparison comparison)
 {
     this.comparison = comparison;
 }
Exemplo n.º 4
0
 public LevelFilterIndex()
 {
     comparison = new IntComparison(0);
 }
Exemplo n.º 5
0
 public LevelFilterPage(IntComparison comparison)
 {
     this.comparison = comparison;
 }
Exemplo n.º 6
0
 public LevelFilterPage()
 {
     comparison = new IntComparison(0);
 }
Exemplo n.º 7
0
 public LevelFilterDifficulty(LevelDifficulty difficulty)
 {
     this.comparison = new IntComparison(difficultyRanks.IndexOf(difficulty));
 }
Exemplo n.º 8
0
 public LevelFilterDifficulty(IntComparison comparison)
 {
     this.comparison = comparison;
 }
Exemplo n.º 9
0
 public LevelFilterDifficulty()
 {
     comparison = new IntComparison(0);
 }