public void SetBattleInfo(int battleId, PvpJoinType joinType) { this.BattleInfo = new BattleInfo { BattleId = battleId, JoinType = joinType }; string sceneId = this.SceneId; LevelManager.m_CurLevel.Set(12, sceneId, sceneId, joinType, 0); }
public void Set(int battle_type, string battle, string level, PvpJoinType inJoinType, int index) { this.battle_type = battle_type; this.battle_id = battle; this.level_id = level; this.level_index = index; if (StringUtils.CheckValid(level)) { SysBattleSceneVo dataById = BaseDataMgr.instance.GetDataById <SysBattleSceneVo>(level); if (dataById != null) { this._isConnectPveServer = (dataById.is_connect_pveserver > 0); this._curBelongedBattleType = (ESceneBelongedBattleType)dataById.belonged_battletype; } } this._curPvpJoinType = inJoinType; }
public BattleInfo() { this.JoinType = PvpJoinType.Invalid; }