static Watchers()
 {
     ArenaWatcher.OnCompleteDeck              += (sender, args) => DeckManager.AutoImportArena(Config.Instance.SelectedArenaImportingBehaviour ?? ArenaImportingBehaviour.AutoImportSave, args.Info);
     PackWatcher.NewPackEventHandler          += (sender, args) => PackUploader.UploadPack(args.PackId, args.Cards);
     DungeonRunWatcher.DungeonRunMatchStarted += DeckManager.DungeonRunMatchStarted;
     DungeonRunWatcher.DungeonInfoChanged     += DeckManager.UpdateDungeonRunDeck;
 }
 public void Handle(LogLineItem logLine, IHsGameState gameState, IGame game)
 {
     if (!logLine.Line.Contains("SetDraftMode - ACTIVE_DRAFT_DECK") || (DateTime.Now - logLine.Time).TotalSeconds > 5)
     {
         return;
     }
     DeckManager.AutoImportArena(Config.Instance.SelectedArenaImportingBehaviour ?? ArenaImportingBehaviour.AutoImportSave);
 }
Exemplo n.º 3
0
 static Watchers()
 {
     ArenaWatcher.OnCompleteDeck                    += (sender, args) => DeckManager.AutoImportArena(Config.Instance.SelectedArenaImportingBehaviour ?? ArenaImportingBehaviour.AutoImportSave, args.Info);
     PackWatcher.NewPackEventHandler                += (sender, args) => PackUploader.UploadPack(args.PackId, args.Cards);
     DungeonRunWatcher.DungeonRunMatchStarted       += (newRun, set) => DeckManager.DungeonRunMatchStarted(newRun, set, false);
     DungeonRunWatcher.DungeonInfoChanged           += dungeonInfo => DeckManager.UpdateDungeonRunDeck(dungeonInfo, false);
     PVPDungeonRunWatcher.PVPDungeonRunMatchStarted += (newRun, set) => DeckManager.DungeonRunMatchStarted(newRun, set, true);
     PVPDungeonRunWatcher.PVPDungeonInfoChanged     += dungeonInfo => DeckManager.UpdateDungeonRunDeck(dungeonInfo, true);
     FriendlyChallengeWatcher.OnFriendlyChallenge   += OnFriendlyChallenge;
 }
Exemplo n.º 4
0
 static Watchers()
 {
     ArenaWatcher.OnCompleteDeck     += (sender, args) => DeckManager.AutoImportArena(Config.Instance.SelectedArenaImportingBehaviour ?? ArenaImportingBehaviour.AutoImportSave, args.Info);
     PackWatcher.NewPackEventHandler += (sender, args) => PackUploader.UploadPack(args.PackId, args.Cards);
 }
Exemplo n.º 5
0
 static Watchers()
 {
     ArenaWatcher.OnCompleteDeck += (sender, args) => DeckManager.AutoImportArena(Config.Instance.SelectedArenaImportingBehaviour ?? ArenaImportingBehaviour.AutoImportSave, args.Info);
 }