Exemplo n.º 1
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;
 }
Exemplo n.º 2
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;
 }
Exemplo n.º 3
0
        public IEnumerator ApplyAcientBattle(Coroutine coroutine, ActivityCharacterProxy _this, ApplyAcientBattleInMessage msg)
        {
            var bossDieDic = AcientBattleManager.RefreshAcientBattleData(msg.Request.ServerId, -1);

            msg.Response.Data.AddRange(bossDieDic);
            msg.Reply((int)ErrorCodes.OK);
            yield break;
        }
Exemplo n.º 4
0
        public IEnumerator ApplyChickenRankData(Coroutine coroutine, ActivityCharacterProxy _this, ApplyChickenRankDataInMessage msg)
        {
            var data = ChickenManager.ApplyChickenRank(msg.Request.CharacterId);

            msg.Response = data;
            msg.Reply((int)ErrorCodes.OK);
            yield break;
        }
Exemplo n.º 5
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;
        }
Exemplo n.º 6
0
        public IEnumerator ApplyActivityState(Coroutine co,
                                              ActivityCharacterProxy _this,
                                              ApplyActivityStateInMessage msg)
        {
            var state = WorldBossManager.GetState(SceneExtension.GetServerLogicId(msg.Request.ServerId));

            msg.Response.Data.Add((int)eActivity.WorldBoss, (int)state);
            msg.Reply();
            yield break;
        }
Exemplo n.º 7
0
        public IEnumerator ApplyOrderSerial(Coroutine coroutine,
                                            ActivityCharacterProxy _this,
                                            ApplyOrderSerialInMessage msg)
        {
            var proxy = (ActivityProxy)_this;

            PlayerLog.WriteLog(proxy.CharacterId, "----------Activity----------ApplyOrderSerial----------:{0}",
                               msg.Request.Msg.GoodId);

            return(InAppPurchase.ApplyOrderSerial(coroutine, _this.Service, msg));
        }
Exemplo n.º 8
0
        public IEnumerator OnConnected(Coroutine coroutine,
                                       ActivityCharacterProxy characterProxy,
                                       AsyncReturnValue <bool> ret)
        {
            ret.Value = true;
            var proxy = (ActivityProxy)characterProxy;

            proxy.Connected = true;

            yield break;
        }
Exemplo n.º 9
0
 public bool OnSyncRequested(ActivityCharacterProxy characterProxy, ulong characterId, uint syncId)
 {
     return(true);
 }
Exemplo n.º 10
0
 public IEnumerator OnLost(Coroutine coroutine, ActivityCharacterProxy characterProxy, uint packId)
 {
     yield break;
 }