Ejemplo n.º 1
0
        public void OnEvent(U3D_Render.Utility.EVENT eventID, int sourceID, System.Object objEvent)
        {
            switch (eventID)
            {
            case EVENT.ENTITY_SHOW_HERO:
            {
                if (objEvent == null || m_wndView == null)
                {
                    return;
                }

                SEntityShowHero event_data = (SEntityShowHero)objEvent;
                int             nId        = event_data.ev.ID;
                if (event_data.bIsHide && !m_wndView.HideHeroList.Contains(nId))
                {
                    m_wndView.HideHeroList.Add(nId);
                }
                else if (!event_data.bIsHide && m_wndView.HideHeroList.Contains(nId))
                {
                    m_wndView.HideHeroList.Remove(nId);
                }
            }
            break;

            default:
                break;
            }
        }
Ejemplo n.º 2
0
    public void OnEvent(U3D_Render.Utility.EVENT eventID, int sourceID, System.Object objEvent)
    {
        switch (eventID)
        {
        case EVENT.ENTITY_SHOW_HERO:
        {
            if (objEvent == null)
            {
                return;
            }
            onENTITY_SHOW_HERO(objEvent);
        }
        break;

        default:
            break;
        }
    }