示例#1
0
文件: Bell.cs 项目: Invisi/Blish-HUD
        private void IncreaseOctave()
        {
            var noteType = InstrumentSkillType.IncreaseOctaveToHigh;

            switch (_currentOctave)
            {
            case BellNote.Octaves.Low:
                noteType       = InstrumentSkillType.IncreaseOctaveToMiddle;
                _currentOctave = BellNote.Octaves.Middle;
                break;

            case BellNote.Octaves.Middle:
                noteType       = InstrumentSkillType.IncreaseOctaveToHigh;
                _currentOctave = BellNote.Octaves.High;
                break;

            case BellNote.Octaves.High:
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }

            _keyboard.Press(GuildWarsControls.EliteSkill);
            _keyboard.Release(GuildWarsControls.EliteSkill);

            Thread.Sleep(OctaveTimeout);
        }
示例#2
0
        private void DecreaseOctave()
        {
            switch (_octave)
            {
            case BellNote.Octaves.None:
                break;

            case BellNote.Octaves.Low:
                break;

            case BellNote.Octaves.Middle:
                _octave = BellNote.Octaves.Low;
                break;

            case BellNote.Octaves.High:
                _octave = BellNote.Octaves.Middle;
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
示例#3
0
        private void IncreaseOctave()
        {
            switch (CurrentOctave)
            {
            case BellNote.Octaves.Low:
                CurrentOctave = BellNote.Octaves.Middle;
                break;

            case BellNote.Octaves.Middle:
                CurrentOctave = BellNote.Octaves.High;
                break;

            case BellNote.Octaves.High:
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }

            PressKey(GuildWarsControls.EliteSkill, CurrentOctave.ToString());

            Thread.Sleep(OctaveTimeout);
        }
示例#4
0
 public CachedSound Get(GuildWarsControls key, BellNote.Octaves octave)
 {
     return(Sound[Map[$"{key}{octave}"]]);
 }