예제 #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);
        }
예제 #2
0
        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);
                }
            }
        }
예제 #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);
        }
예제 #4
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);
        }
예제 #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);
			}
		}
예제 #6
0
 public abstract void RegisterCallback(int nEventID, NFIEvent.EventHandler handler, NFIDataList valueList);
예제 #7
0
		public abstract void RegisterCallback(NFIEvent.EventHandler handler);
예제 #8
0
 public override void RegisterCallback(NFIEvent.EventHandler handler)
 {
     mHandlerDel += handler;
 }
예제 #9
0
 public abstract void RegisterEventCallBack(NFIDENTID self, int nEventID, NFIEvent.EventHandler handler, NFIDataList valueList);
예제 #10
0
 public abstract void RegisterEventCallBack(NFGUID self, int nEventID, NFIEvent.EventHandler handler);