public void OnGameOver() { this.State = BattleSettlementMgr.SettlementState.ePreparing; this.isPass = GameManager.IsVictory.Value; this.scene_id = LevelManager.CurLevelId; this.battle_id = LevelManager.CurBattleId; this.herolist = GameManager.Instance.Spawner.GetHeroNames(TeamType.LM).ToArray(); this.battleType = LevelManager.CurBattleType; long exp = ModelManager.Instance.Get_userData_filed_X("Exp"); CharacterDataMgr.instance.SaveNowUserLevel(exp); this.StarNums = GameManager.Instance.StarManager.GetStartNum(true); GameTimer.NormalTimeScale(); if (this.battleType == 11) { this.State = BattleSettlementMgr.SettlementState.eSuccessRet; return; } if (this.battleType == 12) { string text = string.Concat(new string[] { "PVP_", DateTime.Now.Year.ToString(), DateTime.Now.Month.ToString(), DateTime.Now.Ticks.ToString(), ".trep" }); Util.mode = CompressMode.LZMALow; this.State = BattleSettlementMgr.SettlementState.eSuccessRet; return; } this.UpdateToServer(); }
private void OnGetUploadFightResult(int Ret, string DebugMessage, List <EquipmentInfoData> data) { Singleton <TipView> .Instance.GetErrorInformation(Ret); if (Ret == 0) { this.State = BattleSettlementMgr.SettlementState.eSuccessRet; } else { this.State = BattleSettlementMgr.SettlementState.eFailedRet; } }
public void UpdateToServer() { this.State = BattleSettlementMgr.SettlementState.eUpdating; if (this.battleType == 9) { this.RegisterUpdateHandler_XLD(); } else if (this.battleType != 6) { SendMsgManager.SendMsgParam param = new SendMsgManager.SendMsgParam(true, "正在上传战斗结果", true, 15f); if (!SendMsgManager.Instance.SendMsg(MobaGameCode.UploadFightResult, param, new object[] { this.isPass, (byte)this.StarNums, this.battle_id, this.scene_id, this.herolist })) { } } }
public void Init() { this.settlementState = BattleSettlementMgr.SettlementState.eNotBegin; }