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); }
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(); } }
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); }
public CachedSound Get(GuildWarsControls key, BellNote.Octaves octave) { return(Sound[Map[$"{key}{octave}"]]); }