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); } } }
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); }
public override void RegisterEventCallBack(NFGUID self, int nEventID, NFIEvent.EventHandler handler) { NFIObject xGameObject = GetObject(self); if (null != xGameObject) { //xGameObject.GetEventManager().RegisterCallback(nEventID, handler, valueList); } }
public abstract void RegisterCallback(int nEventID, NFIEvent.EventHandler handler, NFIDataList valueList);
public abstract void RegisterCallback(NFIEvent.EventHandler handler);
public override void RegisterCallback(NFIEvent.EventHandler handler) { mHandlerDel += handler; }
public abstract void RegisterEventCallBack(NFIDENTID self, int nEventID, NFIEvent.EventHandler handler, NFIDataList valueList);
public abstract void RegisterEventCallBack(NFGUID self, int nEventID, NFIEvent.EventHandler handler);