Exemple #1
0
 public void RemoveUIEventListener(enUIEventID eventID, CUIEventManager.OnUIEventHandler onUIEventHandler)
 {
     if (this.m_uiEventHandlerMap[(int)((uint)((UIntPtr)((ulong)((long)eventID))))] != null)
     {
         CUIEventManager.OnUIEventHandler[] uiEventHandlerMap = this.m_uiEventHandlerMap;
         UIntPtr uIntPtr = (UIntPtr)((ulong)((long)eventID));
         uiEventHandlerMap[(int)((uint)uIntPtr)] = (CUIEventManager.OnUIEventHandler)Delegate.Remove(uiEventHandlerMap[(int)((uint)uIntPtr)], onUIEventHandler);
     }
 }
 public void RemoveUIEventListener(enUIEventID eventID, CUIEventManager.OnUIEventHandler onUIEventHandler)
 {
     if (this.m_uiEventHandlerMap[(int)((UIntPtr)eventID)] != null)
     {
         CUIEventManager.OnUIEventHandler[] expr_1B_cp_0 = this.m_uiEventHandlerMap;
         UIntPtr expr_1B_cp_1 = (UIntPtr)eventID;
         expr_1B_cp_0[(int)expr_1B_cp_1] = (CUIEventManager.OnUIEventHandler)Delegate.Remove(expr_1B_cp_0[(int)expr_1B_cp_1], onUIEventHandler);
     }
 }
Exemple #3
0
 public void DispatchUIEvent(CUIEvent uiEvent)
 {
     uiEvent.m_inUse = true;
     CUIEventManager.OnUIEventHandler onUIEventHandler = this.m_uiEventHandlerMap[(int)((uint)((UIntPtr)((ulong)((long)uiEvent.m_eventID))))];
     if (onUIEventHandler != null)
     {
         onUIEventHandler(uiEvent);
     }
     uiEvent.Clear();
 }
Exemple #4
0
 public void AddUIEventListener(enUIEventID eventID, CUIEventManager.OnUIEventHandler onUIEventHandler)
 {
     if (this.m_uiEventHandlerMap[(int)((uint)((UIntPtr)((ulong)((long)eventID))))] == null)
     {
         this.m_uiEventHandlerMap[(int)((uint)((UIntPtr)((ulong)((long)eventID))))] = delegate
         {
         };
         CUIEventManager.OnUIEventHandler[] uiEventHandlerMap = this.m_uiEventHandlerMap;
         UIntPtr uIntPtr = (UIntPtr)((ulong)((long)eventID));
         uiEventHandlerMap[(int)((uint)uIntPtr)] = (CUIEventManager.OnUIEventHandler)Delegate.Combine(uiEventHandlerMap[(int)((uint)uIntPtr)], onUIEventHandler);
     }
     else
     {
         CUIEventManager.OnUIEventHandler[] uiEventHandlerMap2 = this.m_uiEventHandlerMap;
         UIntPtr uIntPtr2 = (UIntPtr)((ulong)((long)eventID));
         uiEventHandlerMap2[(int)((uint)uIntPtr2)] = (CUIEventManager.OnUIEventHandler)Delegate.Remove(uiEventHandlerMap2[(int)((uint)uIntPtr2)], onUIEventHandler);
         CUIEventManager.OnUIEventHandler[] uiEventHandlerMap3 = this.m_uiEventHandlerMap;
         UIntPtr uIntPtr3 = (UIntPtr)((ulong)((long)eventID));
         uiEventHandlerMap3[(int)((uint)uIntPtr3)] = (CUIEventManager.OnUIEventHandler)Delegate.Combine(uiEventHandlerMap3[(int)((uint)uIntPtr3)], onUIEventHandler);
     }
 }
 public void AddUIEventListener(enUIEventID eventID, CUIEventManager.OnUIEventHandler onUIEventHandler)
 {
     if (this.m_uiEventHandlerMap[(int)((UIntPtr)eventID)] == null)
     {
         this.m_uiEventHandlerMap[(int)((UIntPtr)eventID)] = delegate
         {
         };
         CUIEventManager.OnUIEventHandler[] expr_41_cp_0 = this.m_uiEventHandlerMap;
         UIntPtr expr_41_cp_1 = (UIntPtr)eventID;
         expr_41_cp_0[(int)expr_41_cp_1] = (CUIEventManager.OnUIEventHandler)Delegate.Combine(expr_41_cp_0[(int)expr_41_cp_1], onUIEventHandler);
     }
     else
     {
         CUIEventManager.OnUIEventHandler[] expr_61_cp_0 = this.m_uiEventHandlerMap;
         UIntPtr expr_61_cp_1 = (UIntPtr)eventID;
         expr_61_cp_0[(int)expr_61_cp_1] = (CUIEventManager.OnUIEventHandler)Delegate.Remove(expr_61_cp_0[(int)expr_61_cp_1], onUIEventHandler);
         CUIEventManager.OnUIEventHandler[] expr_7C_cp_0 = this.m_uiEventHandlerMap;
         UIntPtr expr_7C_cp_1 = (UIntPtr)eventID;
         expr_7C_cp_0[(int)expr_7C_cp_1] = (CUIEventManager.OnUIEventHandler)Delegate.Combine(expr_7C_cp_0[(int)expr_7C_cp_1], onUIEventHandler);
     }
 }