Beispiel #1
0
 public IEnumerator SSSyncMieShiData(Coroutine coroutine, ActivityService _this, SSSyncMieShiDataInMessage msg)
 {
     MieShiManager.SetPointRankData(msg.Request.ServerId, msg.Request.ActivityId, msg.Request.List);
     msg.Response = 1;
     msg.Reply((int)ErrorCodes.OK);
     yield return(null);
 }
Beispiel #2
0
        public IEnumerator SSApplyPickUpBox(Coroutine coroutine, ActivityService _this, SSApplyPickUpBoxInMessage msg)
        {
            ErrorCodes result = MieShiManager.ApplyPickUpBox(msg.Request.ServerId, msg.Request.ActivityId, msg.Request.NpcId, msg.CharacterId);

            msg.Reply((int)result);
            yield return(null);
        }
Beispiel #3
0
 public IEnumerator ApplyPointRankingData(Coroutine coroutine, ActivityCharacterProxy _this,
                                          ApplyPointRankingDataInMessage msg)
 {
     MieShiManager.GetPointRankingData(SceneExtension.GetServerLogicId(msg.Request.ServerId), msg.Request.ActivityId, _this.CharacterId, msg.Response);
     msg.Reply();
     yield break;
 }
Beispiel #4
0
        public IEnumerator OnServerStart(Coroutine co, ActivityService _this)
        {
            //Thread.Sleep(10000);
            ActivityServer.Instance.Start(_this);
            SpeMonsterManager.Init();
            WorldBossManager.Init();
            InAppPurchase.Init();
            MieShiManager.Init();
            BossHomeManager.Init();
            AcientBattleManager.Init();
            GeneralActivityManager.Init();
            ServerMysteryStoreManager.Init();
            ServerBlackStoreManager.Init();
            ActivityServer.Instance.IsReadyToEnter = true;
            ChickenManager.Init();
            _this.TickDuration = ActivityServerControl.Performance;

            var __this = (ActivityServerControl)_this;

            __this.payDbManagerManager.Init(_this);
            __this.WebRequestManager = new RequestManager(__this);
            var timesp       = DateTime.Now - DateTime.Parse("1970-1-1");
            var milliseconds = timesp.TotalMilliseconds;

            __this.udidSeed = (long)milliseconds % 100000000000L;
            __this.Started  = true;

            yield break;
        }
Beispiel #5
0
        public IEnumerator SSSetAndGetActivityData(Coroutine coroutine, ActivityService _this, SSSetAndGetActivityDataInMessage msg)
        {
            var actiInfo = MieShiManager.SaveGuidAndGetActiInfo(msg.Request.SceneGuid, msg.Request.ServerId, msg.Request.ActivityId, msg.Request.GuidList);

            msg.Response = actiInfo;
            msg.Reply((int)ErrorCodes.OK);
            yield return(null);
        }
Beispiel #6
0
        public IEnumerator SSSaveActivityResult(Coroutine coroutine, ActivityService _this,
                                                SSSaveActivityResultInMessage msg)
        {
            ErrorCodes result = MieShiManager.SetActivityResult(msg.Request.ServerId, msg.Request.ActivityId, msg.Request.Result);

            msg.Reply((int)result);
            yield return(null);
        }
Beispiel #7
0
 public IEnumerator ApplyMieshiHeroLogData(Coroutine coroutine, ActivityCharacterProxy _this,
                                           ApplyMieshiHeroLogDataInMessage msg)
 {
     MieShiManager.ApplyMieshiHeroLogData(SceneExtension.GetServerLogicId(msg.Request.ServerId), msg.Response);
     msg.Reply();
     //var temp = DateTime.FromBinary((long)msg.Response.Datas[0].actiTime);
     yield break;
 }
Beispiel #8
0
 public IEnumerator OnServerStop(Coroutine co, ActivityService _this)
 {
     MieShiManager.UnInit();
     ActivityServer.Instance.DB.Dispose();
     ((ActivityServerControl)_this).payDbManagerManager.Stop();
     ((ActivityServerControl)_this).WebRequestManager.Stop();
     ChickenManager.UnInit();
     yield break;
 }
Beispiel #9
0
        public IEnumerator SSApplyMieShiCanIn(Coroutine coroutine, ActivityService _this,
                                              SSApplyMieShiCanInInMessage msg)
        {
            ErrorCodes result = MieShiManager.ApplyEnterActivity(msg.CharacterId, msg.Request.ServerId, msg.Request.ActivityId);

            msg.Response = (int)result;
            msg.Reply((int)result);
            yield return(null);
        }
Beispiel #10
0
        public IEnumerator SSApplyContributeRate(Coroutine coroutine, ActivityService _this,
                                                 SSApplyContributeRateInMessage msg)
        {
            ContriRateList rate   = new ContriRateList();
            ErrorCodes     result = MieShiManager.ApplyContributeRate(msg.Request.ServerId, msg.Request.ActivityId, ref rate);

            msg.Response = rate;
            msg.Reply((int)result);
            yield return(null);
        }
Beispiel #11
0
        public IEnumerator SSApplyPromoteSkill(Coroutine coroutine, ActivityService _this, SSApplyPromoteSkillInMessage msg)
        {
            BatteryUpdateData update = new BatteryUpdateData();
            ErrorCodes        result = MieShiManager.PromoteBatterySkill(msg.Request.ServerId, msg.Request.ActivityId,
                                                                         msg.Request.BatteryId, msg.Request.PromoteType, msg.Request.CharacterId, msg.Request.Name, ref update);

            msg.Response = update;
            msg.Reply((int)result);
            yield return(null);
        }
Beispiel #12
0
        public IEnumerator ApplyPortraitData(Coroutine coroutine, ActivityCharacterProxy _this,
                                             ApplyPortraitDataInMessage msg)
        {
            PlayerInfoMsg data   = new PlayerInfoMsg();
            ErrorCodes    result = MieShiManager.ApplyPortraitData(SceneExtension.GetServerLogicId(msg.Request.ServerId), ref data);

            msg.Response = data;
            msg.Reply((int)result);
            yield break;
        }
Beispiel #13
0
        public IEnumerator SSApplyActiResultList(Coroutine coroutine, ActivityService _this,
                                                 SSApplyActiResultListInMessage msg)
        {
            MieShiActivityResultList list = new MieShiActivityResultList();

            MieShiManager.ApplyActiResultList(0, list);
            msg.Response = list;
            msg.Reply((int)ErrorCodes.OK);
            yield return(null);
        }
Beispiel #14
0
        public IEnumerator SSAskMieshiTowerUpTimes(Coroutine coroutine,
                                                   ActivityService _this,
                                                   SSAskMieshiTowerUpTimesInMessage msg)
        {
            int        times  = 0;
            ErrorCodes result = MieShiManager.GetPlayerTowerUpTimes(msg.Request.ServerId, msg.Request.ActivityId, msg.Request.CharacterId, ref times);

            msg.Response = times;
            msg.Reply((int)result);
            yield return(null);
        }
Beispiel #15
0
        public IEnumerator SSAskMieshiTowerReward(Coroutine coroutine, ActivityService _this, SSAskMieshiTowerRewardInMessage msg)
        {
//            MieShiManager.SetPointRankData(msg.Request.ServerId, msg.Request.ActivityId, msg.Request.List);
            int flag = 0;

            ErrorCodes errorcode = MieShiManager.OnPlayerGetTowerReward(msg.Request.ServerId, msg.Request.ActivityId, msg.Request.CharacterId, msg.Request.Idx, ref flag);

            msg.Response = flag;
            msg.Reply((int)errorcode);
            yield return(null);
        }
Beispiel #16
0
        public IEnumerator SSApplyJoinActivity(Coroutine coroutine, ActivityService _this,
                                               SSApplyJoinActivityInMessage msg)
        {
            ErrorCodes result = MieShiManager.ApplyJoinActivity(msg.Request.ServerId, msg.Request.ActivityId, msg.CharacterId);

            if (result == ErrorCodes.OK)
            {
                msg.Response = 1;
            }
            else
            {
                msg.Response = 0;
            }
            msg.Reply((int)result);
            yield break;
        }
Beispiel #17
0
        public IEnumerator SSSaveBatteryDestroy(Coroutine coroutine, ActivityService _this,
                                                SSSaveBatteryDestroyInMessage msg)
        {
            ErrorCodes result = MieShiManager.SaveBatteryDestroy(msg.Request.ServerId, msg.Request.ActivityId, msg.Request.BatteryGuid);

            if ((int)result == 1)
            {
                msg.Response = 1;
            }
            else
            {
                msg.Response = 0;
            }
            msg.Reply((int)result);
            yield return(null);
        }
Beispiel #18
0
        public IEnumerator SSApplyPortraitAward(Coroutine coroutine, ActivityService _this,
                                                SSApplyPortraitAwardInMessage msg)
        {
            ErrorCodes result = MieShiManager.ApplyPortraitAward(msg.Request.ServerId, msg.CharacterId);

            if ((int)result == 1)
            {
                msg.Response = 1;
            }
            else
            {
                msg.Response = 0;
            }
            msg.Reply((int)result);
            yield return(null);
        }
Beispiel #19
0
 public IEnumerator SyncActivityAllPlayerExit(Coroutine coroutine, ActivityService _this,
                                              SyncActivityAllPlayerExitInMessage msg)
 {
     MieShiManager.SyncActivityAllPlayerExit(msg.CharacterId, msg.Request.ServerId, msg.Request.ActivityId);
     yield return(null);
 }