Beispiel #1
0
        private bool SubmarineTypeMatches(Submarine sub)
        {
            if (SubmarineType == SubType.Any)
            {
                return(true);
            }
            if (sub == null)
            {
                return(false);
            }
            switch (sub.Info.Type)
            {
            case Barotrauma.SubmarineType.Player:
                return(SubmarineType.HasFlag(SubType.Player));

            case Barotrauma.SubmarineType.Outpost:
            case Barotrauma.SubmarineType.OutpostModule:
                return(SubmarineType.HasFlag(SubType.Outpost));

            case Barotrauma.SubmarineType.Wreck:
                return(SubmarineType.HasFlag(SubType.Wreck));

            case Barotrauma.SubmarineType.BeaconStation:
                return(SubmarineType.HasFlag(SubType.BeaconStation));

            default:
                return(false);
            }
        }
Beispiel #2
0
 public override string ToDebugString()
 {
     return($"{ToolBox.GetDebugSymbol(isFinished)} {nameof(TagAction)} -> (Criteria: {Criteria.ColorizeObject()}, Tag: {Tag.ColorizeObject()}, Sub: {SubmarineType.ColorizeObject()})");
 }