Beispiel #1
0
 public AKBankAtomSet(AKAudioBankLoader.BankLoadHandlerAgent loader)
 {
     loader.BroadcastAsync_LoadSucessEvt   += OnLoadSucess;
     loader.BroadcastAsync_LoadFailEvt     += OnLoadFailed;
     loader.BroadcastAsync_UpdateRefEvt    += OnLoadRefUpdate;
     loader.BroadcastAsync_UnloadFailEvt   += OnUnloadFail;
     loader.BroadcastAsync_UnloadSucessEvt += OnUnloadSucess;
 }
Beispiel #2
0
        internal bool Add(AkBankRes bankData, AKAudioBankLoader.BankLoadHandlerAgent loadHandlers)
        {
            AKBankAtom atom;
            string     bankName = bankData.Name;

            if (bankAtomContenter.TryGetValue(bankName, out atom))
            {
                return(false);
            }
            atom = new AKBankAtom(bankData, loadHandlers);
            bankAtomContenter.Add(bankName, atom);
            //  bankFinishLoadingIdList.Add(bankName);

            return(true);
        }
Beispiel #3
0
 public AKBankAtom(AkBankRes data, AKAudioBankLoader.BankLoadHandlerAgent handlerAgent)
 {
     BankData      = data;
     loadHanlder   = handlerAgent.InternalLoadHandler;
     unloadHandler = handlerAgent.InternalUnloadHandler;
 }