Files
LuaCsForBarotraumaEP/Barotrauma/BarotraumaShared/SharedSource/Events/EventActions/GoTo.cs
2022-02-26 02:43:01 +09:00

25 lines
572 B
C#

using System.Xml.Linq;
namespace Barotrauma
{
class GoTo : EventAction
{
[Serialize("", IsPropertySaveable.Yes)]
public string Name { get; set; }
public GoTo(ScriptedEvent parentEvent, ContentXElement element) : base(parentEvent, element) { }
public override bool IsFinished(ref string goTo)
{
goTo = Name;
return true;
}
public override string ToDebugString()
{
return $"[-] Go to label \"{Name}\"";
}
public override void Reset() { }
}
}