예제 #1
0
 public override void AddHeartBeat(string strHeartBeatName, float fTime, NFIHeartBeat.HeartBeatEventHandler handler, NFIDataList valueList)
 {
     if (!mhtHeartBeat.ContainsKey(strHeartBeatName))
     {
         NFIHeartBeat xHeartBeat = new NFCHeartBeat(mSelf, strHeartBeatName, fTime, valueList);
         mhtHeartBeat.Add(strHeartBeatName, xHeartBeat);
         xHeartBeat.RegisterCallback(handler);
     }
 }
        public override void Update(float fPassTime)
        {
            NFIDataList xRemoveKeyList = new NFCDataList();;

            foreach (KeyValuePair <string, NFIHeartBeat> kv in mhtHeartBeat)
            {
                NFIHeartBeat xHeartBeat = (NFIHeartBeat)kv.Value;
                if (xHeartBeat.NeedRemove())
                {
                    xRemoveKeyList.AddString((string)kv.Key);
                }
                else
                {
                    xHeartBeat.Update(fPassTime);
                }
            }

            for (int i = 0; i < xRemoveKeyList.Count(); i++)
            {
                mhtHeartBeat.Remove(xRemoveKeyList.StringVal(i));
            }
        }
예제 #3
0
		public abstract void RegisterCallback(NFIHeartBeat.HeartBeatEventHandler handler);
예제 #4
0
        public override bool AddHeartBeat(NFGUID self, string strHeartBeatName, NFIHeartBeat.HeartBeatEventHandler handler, float fTime, int nCount)
		{
            NFIObject xGameObject = GetObject(self);
            if (null != xGameObject)
            {
                xGameObject.GetHeartBeatManager().AddHeartBeat(strHeartBeatName, fTime, nCount, handler);
            }
			return true;
		}
예제 #5
0
 public abstract void AddHeartBeat(string strHeartBeatName, float fTime, int nCount, NFIHeartBeat.HeartBeatEventHandler handler);
예제 #6
0
 public override void AddHeartBeat(string strHeartBeatName, float fTime, int nCount, NFIHeartBeat.HeartBeatEventHandler handler)
 {
     GetHeartBeatManager().AddHeartBeat(strHeartBeatName, fTime, nCount, handler);
 }
예제 #7
0
 public override void RegisterCallback(NFIHeartBeat.HeartBeatEventHandler handler)
 {
     doHandlerDel += handler;
 }
예제 #8
0
 public abstract void AddHeartBeat(string strHeartBeatName, float fTime, NFIHeartBeat.HeartBeatEventHandler handler, NFIDataList valueList);
예제 #9
0
 public abstract bool AddHeartBeat(NFIDENTID self, string strHeartBeatName, NFIHeartBeat.HeartBeatEventHandler handler, float fTime, NFIDataList valueList);
예제 #10
0
 public abstract bool AddHeartBeat(NFGUID self, string strHeartBeatName, NFIHeartBeat.HeartBeatEventHandler handler, float fTime, int nCount);