public SkillLevelTrigger(string characterName, TriggerEntity triggerEntity, ISoundManager soundManager,
                                 ITrayPopups trayPopups, IWurmApi wurmApi, ILogger logger)
            : base(triggerEntity, soundManager, trayPopups, wurmApi, logger)
        {
            if (characterName == null)
            {
                throw new ArgumentNullException("characterName");
            }
            this.characterName = characterName;
            this.logger        = logger;
            skillEntryParser   = new SkillEntryParser(wurmApi);
            LockedLogTypes     = new[] { LogType.Skills };

            SkillFeedback = "(no data)";

            skillHistoricRefresher = new TriggerableAsyncOperation(RefreshSkill);

            character = wurmApi.Characters.Get(characterName);
            character.LogInOrCurrentServerPotentiallyChanged += CharacterOnLogInOrCurrentServerPotentiallyChanged;

            skillHistoricRefresher.Trigger();
        }
 public PrayerTimer(string persistentObjectId, IWurmApi wurmApi, ILogger logger, ISoundManager soundManager,
                    ITrayPopups trayPopups, ITelemetry telemetry)
     : base(persistentObjectId, trayPopups, logger, wurmApi, soundManager, telemetry)
 {
     updatePrayerCooldownOperation = new TriggerableAsyncOperation(UpdatePrayerCooldown);
 }
Exemple #3
0
 public MeditationTimer(string persistentObjectId, IWurmApi wurmApi, ILogger logger, ISoundManager soundManager,
                        ITrayPopups trayPopups)
     : base(persistentObjectId, trayPopups, logger, wurmApi, soundManager)
 {
     cooldownUpdateOperation = new TriggerableAsyncOperation(UpdateMeditationCooldown);
 }