Beispiel #1
0
        public void RequestEnter()
        {
#if OFFICER_SYS
            List <long> officeIDList = EventGamePoliceDispatchManager.Instance.GetAllDispathOfficersID();
            if (officeIDList.Count == 0)
            {
                Dictionary <UBSParamKeyName, object> _params = new Dictionary <UBSParamKeyName, object>()
                {
                    { UBSParamKeyName.Success, 0 },
                    { UBSParamKeyName.Description, UBSDescription.NO_OFFICER_SELECTED },
                    { UBSParamKeyName.SceneID, m_event_id }
                };
                UserBehaviorStatisticsModules.Instance.LogEvent(UBSEventKeyName.event_begin, null, _params);

                PopUpManager.OpenPopUp(new PopUpData()
                {
                    isOneBtn = true,
                    content  = "UI_ENTER_GAME_NO_OFFICE",
                });

                return;
            }
#endif

            CSEventEnterRequest req = new CSEventEnterRequest();

            this.OnScHalfAsyncRequest(req, m_event_id);
        }
Beispiel #2
0
        public override void OnPackageRequest(IMessage imsg, params object[] msg_params)
        {
            base.OnPackageRequest(imsg, msg_params);

            if (imsg is CSEventPhaseFeedbackRequest)
            {
                long        event_id            = (long)(msg_params[0]);
                List <long> officer_player_ids  = (List <long>)(msg_params[1]);
                CSEventPhaseFeedbackRequest req = imsg as CSEventPhaseFeedbackRequest;

                req.EventId = event_id;
                req.PlayerOfficerId.AddRange(officer_player_ids);
            }
            else if (imsg is CSEventEnterRequest)
            {
                CSEventEnterRequest req = imsg as CSEventEnterRequest;
                req.EventId = m_event_id;
            }
        }