namespace Barotrauma { /// /// Defines a point in the event that actions can jump to. /// class Label : EventAction { [Serialize("", IsPropertySaveable.Yes)] public string Name { get; set; } public Label(ScriptedEvent parentEvent, ContentXElement element) : base(parentEvent, element) { } public override bool IsFinished(ref string goTo) { return true; } public override bool SetGoToTarget(string goTo) { return goTo.Equals(Name, System.StringComparison.InvariantCultureIgnoreCase); } public override string ToDebugString() { return $"[-] Label \"{Name}\""; } public override void Reset() { } } }