Files
LuaCsForBarotraumaEP/Barotrauma/BarotraumaShared/SharedSource/Events/EventActions/Label.cs
2020-07-30 13:00:09 +03:00

29 lines
685 B
C#

using System.Xml.Linq;
namespace Barotrauma
{
class Label : EventAction
{
[Serialize("", true)]
public string Name { get; set; }
public Label(ScriptedEvent parentEvent, XElement 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() { }
}
}