Client LuaCsForBarotrauma
CoOpMode.cs
1 using System.Collections.Generic;
2 
3 namespace Barotrauma
4 {
6  {
7  public CoOpMode(GameModePreset preset, IEnumerable<MissionPrefab> missionPrefabs) : base(preset, ValidateMissionPrefabs(missionPrefabs, MissionPrefab.CoOpMissionClasses)) { }
8 
9  public CoOpMode(GameModePreset preset, IEnumerable<Identifier> missionTypes, string seed) : base(preset, ValidateMissionTypes(missionTypes, MissionPrefab.CoOpMissionClasses), seed) { }
10  }
11 }
CoOpMode(GameModePreset preset, IEnumerable< Identifier > missionTypes, string seed)
Definition: CoOpMode.cs:9
CoOpMode(GameModePreset preset, IEnumerable< MissionPrefab > missionPrefabs)
Definition: CoOpMode.cs:7
static IEnumerable< MissionPrefab > ValidateMissionPrefabs(IEnumerable< MissionPrefab > missionPrefabs, Dictionary< Identifier, Type > missionClasses)
static IEnumerable< Identifier > ValidateMissionTypes(IEnumerable< Identifier > missionTypes, Dictionary< Identifier, Type > missionClasses)
Returns the mission types that are valid for the given mission classes (e.g. all mission types suitab...