Beispiel #1
0
        public override void RegisterCallback(int nEventID, NFIEvent.EventHandler handler, NFIDataList valueList)
        {
            if (!mhtEvent.ContainsKey(nEventID))
            {
                mhtEvent.Add(nEventID, new NFCEvent(mSelf, nEventID, valueList));
            }

            NFIEvent identEvent = (NFIEvent)mhtEvent[nEventID];
            identEvent.RegisterCallback(handler);
        }
        public override void DoEvent(NFGUID self, int nEventID, NFIDataList valueList)
        {
            Dictionary <int, NFIEvent> xData = mhtEvent[self];

            if (null != xData)
            {
                if (xData.ContainsKey(nEventID))
                {
                    NFIEvent identEvent = (NFIEvent)xData[nEventID];
                    identEvent.DoEvent(valueList);
                }
            }
        }
Beispiel #3
0
        public override void RegisterCallback(NFGUID self, int nEventID, NFIEvent.EventHandler handler, NFIDataList valueList)
        {
            Dictionary<int, NFIEvent> xData = mhtEvent[self];
            if (!mhtEvent.ContainsKey(self) || null == xData)
            {
                xData = new Dictionary<int, NFIEvent>();
                xData.Add(nEventID, new NFCEvent(self, nEventID, valueList));

                mhtEvent.Add(self, xData);
                return;
            }

            if (!xData.ContainsKey(nEventID))
            {
                xData.Add(nEventID, new NFCEvent(self, nEventID, valueList));
                return ;
            }

            NFIEvent identEvent = (NFIEvent)mhtEvent[self][nEventID];
            identEvent.RegisterCallback(handler);
        }
        public override void RegisterCallback(NFGUID self, int nEventID, NFIEvent.EventHandler handler, NFIDataList valueList)
        {
            Dictionary <int, NFIEvent> xData = mhtEvent[self];

            if (!mhtEvent.ContainsKey(self) || null == xData)
            {
                xData = new Dictionary <int, NFIEvent>();
                xData.Add(nEventID, new NFCEvent(self, nEventID, valueList));

                mhtEvent.Add(self, xData);
                return;
            }

            if (!xData.ContainsKey(nEventID))
            {
                xData.Add(nEventID, new NFCEvent(self, nEventID, valueList));
                return;
            }

            NFIEvent identEvent = (NFIEvent)mhtEvent[self][nEventID];

            identEvent.RegisterCallback(handler);
        }
Beispiel #5
0
		public override void RegisterEventCallBack(NFGUID self, int nEventID, NFIEvent.EventHandler handler)
		{
			NFIObject xGameObject = GetObject(self);
			if (null != xGameObject)
			{
				//xGameObject.GetEventManager().RegisterCallback(nEventID, handler, valueList);
			}
		}
Beispiel #6
0
 public abstract void RegisterCallback(int nEventID, NFIEvent.EventHandler handler, NFIDataList valueList);
Beispiel #7
0
		public abstract void RegisterCallback(NFIEvent.EventHandler handler);
Beispiel #8
0
 public override void RegisterCallback(NFIEvent.EventHandler handler)
 {
     mHandlerDel += handler;
 }
Beispiel #9
0
 public abstract void RegisterEventCallBack(NFIDENTID self, int nEventID, NFIEvent.EventHandler handler, NFIDataList valueList);
Beispiel #10
0
 public abstract void RegisterEventCallBack(NFGUID self, int nEventID, NFIEvent.EventHandler handler);