コード例 #1
0
        public void processEvent(EventObjectEx eventObject)
        {
            switch (eventObject.EventType)
            {
            case 24:
            {
                PreBangHuiRemoveMemberEventObject e = eventObject as PreBangHuiRemoveMemberEventObject;
                if (null != e)
                {
                    eventObject.Handled = this.OnPreBangHuiRemoveMember(e);
                }
                break;
            }

            case 25:
            {
                PreBangHuiChangeZhiWuEventObject e2 = eventObject as PreBangHuiChangeZhiWuEventObject;
                if (null != e2)
                {
                    eventObject.Handled = this.OnPreBangHuiChangeZhiWu(e2);
                }
                break;
            }
            }
        }
コード例 #2
0
        public bool OnPreBangHuiRemoveMember(PreBangHuiRemoveMemberEventObject e)
        {
            bool result;

            if (e.Player.ClientData.JunTuanId > 0 && this.InActivityTime())
            {
                e.Result = false;
                GameManager.ClientMgr.NotifyImportantMsg(e.Player, GLang.GetLang(2619, new object[0]), GameInfoTypeIndexes.Error, ShowGameInfoTypes.ErrAndBox, 0);
                result = true;
            }
            else
            {
                result = false;
            }
            return(result);
        }