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")); }
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")); }
public LevelFilterIndex(IntComparison comparison) { this.comparison = comparison; }
public LevelFilterIndex() { comparison = new IntComparison(0); }
public LevelFilterPage(IntComparison comparison) { this.comparison = comparison; }
public LevelFilterPage() { comparison = new IntComparison(0); }
public LevelFilterDifficulty(LevelDifficulty difficulty) { this.comparison = new IntComparison(difficultyRanks.IndexOf(difficulty)); }
public LevelFilterDifficulty(IntComparison comparison) { this.comparison = comparison; }
public LevelFilterDifficulty() { comparison = new IntComparison(0); }