コード例 #1
0
 /// <summary>
 /// This method will be called for every frame captured by D3DDetour
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="lse"></param>
 ///
 private void OnD3DFrame(object sender, EventArgs e)
 {
     lock (_frameLock)
     {
         if (LOLClientEnabled)
         {
             using (LOLClient _client = new LOLClient())
             {
                 Client = _client;
                 if (OnFrame != null)
                 {
                     OnFrame(this, new EventArgs());
                 }
                 //Client = null;
             }
         }
         else
         {
             OnFrame(this, new EventArgs());
         }
     }
 }
コード例 #2
0
ファイル: Frame.cs プロジェクト: Nuro/LOLSmite
        /// <summary>
        /// This method will be called for every frame captured by D3DDetour
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="lse"></param>
        /// 
        private void OnD3DFrame(object sender, EventArgs e)
        {
            lock (_frameLock)
            {
                if (LOLClientEnabled)
                {
                    using (LOLClient _client = new LOLClient())
                    {
                        Client = _client;
                        if (OnFrame != null)
                            OnFrame(this, new EventArgs());
                        //Client = null;

                    }
                }
                else
                {
                    OnFrame(this, new EventArgs());
                }
            }
        }