v1.4.4.1 (Blood in the Water Update)

This commit is contained in:
Regalis11
2024-04-24 18:09:05 +03:00
parent 89b91d1c3e
commit ff1b8951a7
397 changed files with 15250 additions and 6479 deletions
@@ -1,40 +1,81 @@
using System;
namespace Barotrauma
{
/// <summary>
/// Displays an objective in the top-right corner of the screen, or modifies an existing objective in some way.
/// </summary>
partial class EventObjectiveAction : EventAction
{
public enum SegmentActionType { Trigger, Add, AddIfNotFound, Complete, CompleteAndRemove, Remove, Fail, FailAndRemove };
public enum SegmentActionType
{
/// <summary>
/// Legacy support. Triggers an info box segment, with optional support for video clips.
/// </summary>
[Obsolete]
Trigger,
/// <summary>
/// Adds a new objective to the list.
/// </summary>
Add,
/// <summary>
/// Adds a new objective to the list if there are no existing objectives with the same identifier.
/// </summary>
AddIfNotFound,
/// <summary>
/// Marks the objective as completed.
/// </summary>
Complete,
/// <summary>
/// Marks the objective as completed and removes it from the list.
/// </summary>
CompleteAndRemove,
/// <summary>
/// Removes the objective from the list.
/// </summary>
Remove,
/// <summary>
/// Marks the objective as failed.
/// </summary>
Fail,
/// <summary>
/// Marks the objective as failed and removes it from the list.
/// </summary>
FailAndRemove
};
[Serialize(SegmentActionType.Trigger, IsPropertySaveable.Yes)]
[Serialize(SegmentActionType.Add, IsPropertySaveable.Yes, description: "Should the action add a new objective, or do something to an existing objective?")]
public SegmentActionType Type { get; set; }
[Serialize("", IsPropertySaveable.Yes)]
[Serialize("", IsPropertySaveable.Yes, description: "Arbitrary identifier given to the objective. Can be used to complete/remove/fail the objective later. Also used to fetch the text from the text files.")]
public Identifier Identifier { get; set; }
[Serialize("", IsPropertySaveable.Yes)]
[Obsolete, Serialize("", IsPropertySaveable.Yes, description: "Legacy support. Tag of the text to display as an objective in info box segments.")]
public Identifier ObjectiveTag { get; set; }
[Serialize(true, IsPropertySaveable.Yes)]
[Obsolete, Serialize(true, IsPropertySaveable.Yes, description: "Legacy support. Is this objective possible to complete if it's used in an info box segment.")]
public bool CanBeCompleted { get; set; }
[Serialize("", IsPropertySaveable.Yes)]
[Serialize("", IsPropertySaveable.Yes, description: "Identifier of a parent objective. If set, this objective is displayed as a subobjective under the parent objective.")]
public Identifier ParentObjectiveId { get; set; }
[Serialize(false, IsPropertySaveable.Yes)]
[Obsolete, Serialize(false, IsPropertySaveable.Yes, description: "Legacy support. Should the video defined by VideoFile play automatically, or wait for the user to play it.")]
public bool AutoPlayVideo { get; set; }
[Serialize("", IsPropertySaveable.Yes)]
[Obsolete, Serialize("", IsPropertySaveable.Yes, description: "Legacy support. Tag of the main text to display in info box segments.")]
public Identifier TextTag { get; set; }
[Serialize("", IsPropertySaveable.Yes)]
[Obsolete, Serialize("", IsPropertySaveable.Yes, description: "Legacy support. Path of a video file to display in info box segments.")]
public string VideoFile { get; set; }
[Serialize(450, IsPropertySaveable.Yes)]
[Obsolete, Serialize(450, IsPropertySaveable.Yes, description: "Legacy support. Width of the info box segment.")]
public int Width { get; set; }
[Serialize(80, IsPropertySaveable.Yes)]
[Obsolete, Serialize(80, IsPropertySaveable.Yes, description: "Legacy support. Height of the info box segment.")]
public int Height { get; set; }
[Serialize("", IsPropertySaveable.Yes)]
[Serialize("", IsPropertySaveable.Yes, description: "Tag of the character(s) to show the objective to.")]
public Identifier TargetTag { get; set; }
private bool isFinished;