CSharp_CancelBankCallbackCookie() private method

private CSharp_CancelBankCallbackCookie ( IntPtr jarg1 ) : void
jarg1 IntPtr
return void
Esempio n. 1
0
    static public void RemoveBankCallback(object in_cookie)
    {
        List <int> cookiesToRemove = new List <int>();

        foreach (KeyValuePair <int, BankCallbackPackage> pair in m_mapBankCallbacks)
        {
            if (pair.Value.m_Cookie == in_cookie)
            {
                cookiesToRemove.Add(pair.Key);
            }
        }

        int Count = cookiesToRemove.Count;

        for (int ii = 0; ii < Count; ++ii)
        {
            int toRemove = cookiesToRemove[ii];
            m_mapBankCallbacks.Remove(toRemove);
            AkSoundEnginePINVOKE.CSharp_CancelBankCallbackCookie((IntPtr)toRemove);
        }
    }
    public static void RemoveBankCallback(object in_cookie)
    {
        var cookiesToRemove = new System.Collections.Generic.List <int>();

        foreach (var pair in m_mapBankCallbacks)
        {
            if (pair.Value.m_Cookie == in_cookie)
            {
                cookiesToRemove.Add(pair.Key);
            }
        }

        var Count = cookiesToRemove.Count;

        for (var ii = 0; ii < Count; ++ii)
        {
            var toRemove = cookiesToRemove[ii];
            m_mapBankCallbacks.Remove(toRemove);
            AkSoundEnginePINVOKE.CSharp_CancelBankCallbackCookie((System.IntPtr)toRemove);
        }
    }