public AmongUsDirectorHostedService( DiscordBotService discordBot, AmongUsGame game, GameManagerService gameManager, DiscoveryServer discovery, MothershipCommArray comms, RedisClientService redis) { this.DiscordBot = discordBot; this.Game = game; this.GameManager = gameManager; this.Discovery = discovery; this.Comms = comms; this.Redis = redis; this.Game.GameStarted += this.Game_GameStarted; this.Game.GameEnded += this.Game_GameEnded; this.Game.PlayerJoined += this.Game_PlayerJoined; this.Game.PlayerLeft += this.Game_PlayerLeft; this.Game.PlayerDied += this.Game_PlayerDied; this.Game.MeetingStarted += this.Game_MeetingStarted; this.Game.MeetingEnded += this.Game_MeetingEnded; }
public GameCommandModule(GameManagerService gameManager, EmojiProvider emojiProvider) { this.GameManager = gameManager; this.EmojiProvider = emojiProvider; }