2 using System.Collections.Generic;
23 return GameMain.GameSession.WinningTeam.Value;
31 if (Winner ==
CharacterTeamType.None || base.SuccessMessage.IsNullOrEmpty()) {
return ""; }
34 if (!TextManager.ContainsTag(
"MissionSuccess." +
Prefab.TextIdentifier)) {
return ""; }
40 return base.SuccessMessage
47 : base(prefab, locations, sub)
56 for (
int i = 0; i < descriptions.Length; i++)
58 for (
int n = 0; n < 2; n++)
60 descriptions[i] = descriptions[i].
Replace(
"[location" + (n + 1) +
"]", locations[n].DisplayName);
75 return teamNames.
Length > 0 ? teamNames[0] :
"Team 1";
79 return teamNames.
Length > 1 ? teamNames[1] :
"Team 2";
82 return "Invalid Team";
87 return character !=
null &&
89 Winner == character.
TeamID;
96 DebugConsole.ThrowError(
"Combat missions cannot be played in the single player mode.");
112 crews =
new List<Character>[] {
new List<Character>(),
new List<Character>() };
113 roundEndTimer = RoundEndDuration;
override bool AllowRespawn
override bool DetermineCompleted()
static LocalizedString GetTeamName(CharacterTeamType teamID)
bool IsInWinningTeam(Character character)
override LocalizedString? SuccessMessage
CombatMission(MissionPrefab prefab, Location[] locations, Submarine sub)
override void StartMissionSpecific(Level level)
string? GetAttributeString(string key, string? def)
static GameSession?? GameSession
static NetworkMember NetworkMember
CharacterTeamType? WinningTeam
LocalizedString Fallback(LocalizedString fallback, bool useDefaultLanguageIfFound=true)
Use this text instead if the original text cannot be found.
LocalizedString Replace(Identifier find, LocalizedString replace, StringComparison stringComparison=StringComparison.Ordinal)
readonly Identifier TextIdentifier
readonly ContentXElement ConfigElement
static readonly Submarine[] MainSubs
IEnumerable< Submarine > GetConnectedSubs()
Returns a list of all submarines that are connected to this one via docking ports,...
void FlipX(List< Submarine > parents=null)
void SetPosition(Vector2 position, List< Submarine > checkd=null, bool forceUndockFromStaticSubmarines=true)