| | |
| | | return teamDict.ContainsKey(teamType); |
| | | } |
| | | |
| | | //通过阵容方案ID获取阵容 |
| | | public TeamBase GetTeam(int teamType) |
| | | //通过阵容方案ID获取阵容 从1开始 |
| | | public TeamBase GetTeam(int presetID) |
| | | { |
| | | TeamBase team = null; |
| | | |
| | | if (!teamDict.TryGetValue(teamType, out team)) |
| | | if (!teamDict.TryGetValue(presetID, out team)) |
| | | { |
| | | team = new TeamBase(teamType); |
| | | team = new TeamBase(presetID); |
| | | // team.CreateDefault(HeroManager.Instance.GetPowerfulHeroList()); |
| | | teamDict.Add(teamType, team); |
| | | teamDict.Add(presetID, team); |
| | | } |
| | | |
| | | return team; |
| | |
| | | return FuncPresetManager.Instance.GetFuncPresetID((int)BattlePreSetType.Story, (int)FuncPresetType.Team); |
| | | } |
| | | |
| | | // 获取指定的方案ID |
| | | public int GetTeamID(int battleType) |
| | | { |
| | | return FuncPresetManager.Instance.GetFuncPresetID(battleType, (int)FuncPresetType.Team); |