public bool IsFightWithRobot(string battleId) { SysBattleSceneVo dataById = BaseDataMgr.instance.GetDataById <SysBattleSceneVo>(battleId); if (dataById != null) { ESceneBelongedBattleType belonged_battletype = (ESceneBelongedBattleType)dataById.belonged_battletype; if (belonged_battletype == ESceneBelongedBattleType.FightWithRobotEasy || belonged_battletype == ESceneBelongedBattleType.FightWithRobotNormal || belonged_battletype == ESceneBelongedBattleType.FightWithRobotHard) { return(true); } } return(false); }
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; }