Beispiel #1
0
 internal void Initialize(SkillCastConfiguration skillCastProfile)
 {
     throw new NotImplementedException();
 }
Beispiel #2
0
        public void SkillCastLoop(IntPtr handle, CancellationTokenSource tokenSource, SkillCastConfiguration configuration, IList <Keys> skillKeybindings)
        {
            foreach (var index in configuration.SkillIndices)
            {
                var delay = configuration.Delays[index];

                var key = index <= 3 ? skillKeybindings[index] : default;
                Execute.AndForgetAsync(() => SendKeyWithDelay(handle, tokenSource, index, delay, key));
            }

            while (!IsCancelled(tokenSource))
            {
                Thread.Sleep(20);
            }

            return;
        }