コード例 #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"));
        }
コード例 #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"));
        }
コード例 #3
0
 public LevelFilterIndex(IntComparison comparison)
 {
     this.comparison = comparison;
 }
コード例 #4
0
 public LevelFilterIndex()
 {
     comparison = new IntComparison(0);
 }
コード例 #5
0
 public LevelFilterPage(IntComparison comparison)
 {
     this.comparison = comparison;
 }
コード例 #6
0
 public LevelFilterPage()
 {
     comparison = new IntComparison(0);
 }
コード例 #7
0
 public LevelFilterDifficulty(LevelDifficulty difficulty)
 {
     this.comparison = new IntComparison(difficultyRanks.IndexOf(difficulty));
 }
コード例 #8
0
 public LevelFilterDifficulty(IntComparison comparison)
 {
     this.comparison = comparison;
 }
コード例 #9
0
 public LevelFilterDifficulty()
 {
     comparison = new IntComparison(0);
 }