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); }
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); }
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; }
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; }
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); }
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); }
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; }
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; }
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); }
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); }
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); }
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; }
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); }
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); }
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); }
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; }
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); }
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); }
public IEnumerator SyncActivityAllPlayerExit(Coroutine coroutine, ActivityService _this, SyncActivityAllPlayerExitInMessage msg) { MieShiManager.SyncActivityAllPlayerExit(msg.CharacterId, msg.Request.ServerId, msg.Request.ActivityId); yield return(null); }