Example #1
0
        public void RemoveActiveLogic(V_IObjectActiveLogic activeLogic)
        {
            List <V_IObjectActiveLogic> tmpLogicList = new List <V_IObjectActiveLogic>(activeLogicArr);

            tmpLogicList.Remove(activeLogic);
            activeLogicArr     = tmpLogicList.ToArray();
            activeLogicArrCopy = tmpLogicList.ToArray();

            allLogicList.Remove(activeLogic);
            logicDic[activeLogic.GetType()] = null;
        }
Example #2
0
        public void AddActiveLogic(V_IObjectActiveLogic activeLogic)
        {
            List <V_IObjectActiveLogic> tmpLogicList = new List <V_IObjectActiveLogic>(activeLogicArr);

            tmpLogicList.Add(activeLogic);
            activeLogicArr     = tmpLogicList.ToArray();
            activeLogicArrCopy = tmpLogicList.ToArray();

            allLogicList.Add(activeLogic);

            logicDic[activeLogic.GetType()] = activeLogic;
        }