public FishingAdmin(FishingSystem fishingSystem) { FishingSystem = fishingSystem; Commands = new List <CommandHandler>(new CommandHandler[] { new CommandHandler("DebugTournament", DebugTournament, "debugtournament", "debug-tournament"), new CommandHandler("DebugCatch", DebugCatch, "debugcatch", "debug-catch") });; }
public FishingModule(UserLookup userLookup, FishingSystem fishingSystem, IRepository <TournamentResult> tournamentResults, Dictionary <string, int> wolfcoins) { FishingSystem = fishingSystem; FishingSystem.FishHooked += FishingSystem_FishHooked; FishingSystem.FishGotAway += FishingSystem_FishGotAway; FishingSystem.NewGlobalRecord += FishingSystem_NewGlobalRecord; UserLookup = userLookup; Wolfcoins = wolfcoins; Commands = new CommandHandler[] { new CommandHandler("PlayerLeaderboard", PlayerLeaderboard, PlayerLeaderboardCompact, "fish"), new CommandHandler("GlobalLeaderboard", GlobalLeaderboard, GlobalLeaderboardCompact, "fishleaders", "leaderboards", "fish-leaders"), new CommandHandler("ReleaseFish", ReleaseFish, "releasefish", "release-fish"), new CommandHandler("CancelCast", CancelCast, "cancelcast", "cancel-cast"), new CommandHandler("CatchFish", CatchFish, "catch", "reel"), new CommandHandler("CastLine", Cast, "cast"), }; SubModules = new ICommandModule[] { new FishingAdmin(fishingSystem), new TournamentModule(fishingSystem.Tournament, tournamentResults, userLookup) }; }