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 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; }
public IEnumerator SSApplyActivityState(Coroutine coroutine, ActivityService _this, SSApplyActivityStateInMessage msg) { var state = WorldBossManager.GetState(msg.Request.ServerId); msg.Response = (int)state; msg.Reply(); yield return(null); }
public IEnumerator NotifyDamageList(Coroutine co, ActivityService _this, NotifyDamageListInMessage msg) { var response = WorldBossManager.ApplyDamage(msg.Request.ServerId, msg.Request.SceneGuid, msg.Request.List); if (response != null) { msg.Response = response; msg.Reply(); } else { msg.Reply((int)ErrorCodes.ServerID); } yield return(null); }