Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
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;
 }
Exemplo n.º 3
0
 public BattleInfo()
 {
     this.JoinType = PvpJoinType.Invalid;
 }