Ejemplo n.º 1
0
 public ObserveCommandProcessor(IRavenfallClient game, IPlayerProvider playerProvider, ITwitchUserStore userStore)
 {
     //this.RequiresBroadcaster = true;
     this.game           = game;
     this.playerProvider = playerProvider;
     this.userStore      = userStore;
 }
Ejemplo n.º 2
0
 public TradeItemCommandProcessor(
     IRavenfallClient game,
     IPlayerProvider playerProvider)
 {
     this.game           = game;
     this.playerProvider = playerProvider;
 }
Ejemplo n.º 3
0
 public ResourcesCommandProcessor(
     IRavenfallClient game,
     IPlayerProvider playerProvider)
 {
     this.game           = game;
     this.playerProvider = playerProvider;
 }
Ejemplo n.º 4
0
        public TwitchBot(
            ILogger logger,
            IKernel kernel,
            IRavenfallClient ravenfall,
            IPlayerProvider playerProvider,
            ITwitchMessageFormatter localizer,
            IMessageBus messageBus,
            ICommandProvider commandProvider,
            ICommandHandler commandHandler,
            IChannelProvider channelProvider,
            IConnectionCredentialsProvider credentialsProvider)
        {
            this.logger           = logger;
            this.kernel           = kernel;
            this.ravenfall        = ravenfall;
            this.playerProvider   = playerProvider;
            this.messageFormatter = localizer;
            this.messageBus       = messageBus;
            this.commandProvider  = commandProvider;

            this.commandHandler      = commandHandler;
            this.channelProvider     = channelProvider;
            this.credentialsProvider = credentialsProvider;

            this.messageBus.Subscribe <string>("streamer_userid_acquired", userid =>
            {
                try
                {
                    if (listeningToChannelPoints)
                    {
                        return;
                    }


                    if (pubsubIsConnected)
                    {
                        pubsubIsConnected = false;
                        pubsub.Disconnect();
                    }

                    pubsub.ListenToChannelPoints(userid);
                    pubsub.Connect();
                    pubsubIsConnected = true;

                    logger.WriteDebug("Connecting to PubSub");
                }
                catch (Exception exc)
                {
                    logger.WriteError(exc.ToString());
                }
            });

            this.CreateTwitchClient();

            ravenfall.ProcessAsync(Settings.UNITY_SERVER_PORT);
        }
 public DungeonCommandProcessor(IRavenfallClient game, IPlayerProvider playerProvider, ITwitchUserStore userStore)
 {
     this.game           = game;
     this.playerProvider = playerProvider;
     this.userStore      = userStore;
 }
Ejemplo n.º 6
0
 public IslandInfoCommandProcessor(IRavenfallClient game, IPlayerProvider playerProvider)
 {
     this.game           = game;
     this.playerProvider = playerProvider;
 }
Ejemplo n.º 7
0
 public HighscoreSkillCommandProcessor(IRavenfallClient game, IPlayerProvider playerProvider)
 {
     this.game           = game;
     this.playerProvider = playerProvider;
 }
 public CraftRequirementCommandProcessor(IRavenfallClient game, IPlayerProvider playerProvider)
 {
     this.game           = game;
     this.playerProvider = playerProvider;
 }
 public MultiplierCommandProcessor(IRavenfallClient game, IPlayerProvider playerProvider)
 {
     this.game           = game;
     this.playerProvider = playerProvider;
 }
Ejemplo n.º 10
0
 public TinyPlayerCommandProcessor(IRavenfallClient game, IPlayerProvider playerProvider)
 {
     //this.RequiresBroadcaster = true;
     this.game           = game;
     this.playerProvider = playerProvider;
 }
 public StreamerTokenReedeemProcessor(IRavenfallClient game, IPlayerProvider playerProvider)
 {
     this.game           = game;
     this.playerProvider = playerProvider;
 }
Ejemplo n.º 12
0
 public DiaperModeProcessor(IRavenfallClient game, IPlayerProvider playerProvider)
 {
     this.game           = game;
     this.playerProvider = playerProvider;
 }
 public ExpMultiplierLimitProcessor(IRavenfallClient game, IPlayerProvider playerProvider)
 {
     this.RequiresBroadcaster = true;
     this.game           = game;
     this.playerProvider = playerProvider;
 }
Ejemplo n.º 14
0
 public ApperanceCommandProcessor(IRavenfallClient game, IPlayerProvider playerProvider)
 {
     this.game           = game;
     this.playerProvider = playerProvider;
 }
Ejemplo n.º 15
0
 public ToggleItemRequirementsProcessor(IRavenfallClient game, IPlayerProvider playerProvider)
 {
     this.game           = game;
     this.playerProvider = playerProvider;
 }