Beispiel #1
0
        public override void Update(float fPassTime)
        {
            NFIDataList keyList = null;

            foreach (KeyValuePair <string, NFIHeartBeat> kv in mhtHeartBeat)
            {
                NFIHeartBeat heartBeat = (NFIHeartBeat)kv.Value;
                if (heartBeat.Update(fPassTime))
                {
                    if (null == keyList)
                    {
                        keyList = new NFCDataList();
                    }

                    keyList.AddString((string)kv.Key);
                }
            }

            if (null != keyList)
            {
                for (int i = 0; i < keyList.Count(); i++)
                {
                    mhtHeartBeat.Remove(keyList.StringVal(i));
                }
            }
        }
Beispiel #2
0
        public override void Update(float fPassTime)
        {
            NFCDataList keyList = null;

            foreach (System.Collections.DictionaryEntry heartObject in mhtHeartBeat)
            {
                NFIHeartBeat heartBeat = (NFIHeartBeat)heartObject.Value;
                if (heartBeat.Update(fPassTime))
                {
                    if (null == keyList)
                    {
                        keyList = new NFCDataList();
                    }

                    keyList.AddString((string)heartObject.Key);
                }
            }

            if (null != keyList)
            {
                for (int i = 0; i < keyList.Count(); i++)
                {
                    mhtHeartBeat.Remove(keyList.StringVal(i));
                }
            }
        }