(965c31410a) Unstable v0.10.4.0
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace Barotrauma
|
||||
{
|
||||
class GoTo : EventAction
|
||||
{
|
||||
[Serialize("", true)]
|
||||
public string Name { get; set; }
|
||||
|
||||
public GoTo(ScriptedEvent parentEvent, XElement 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() { }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user