Client LuaCsForBarotrauma
Label.cs
1 namespace Barotrauma
2 {
6  class Label : EventAction
7  {
9  public string Name { get; set; }
10 
11  public Label(ScriptedEvent parentEvent, ContentXElement element) : base(parentEvent, element) { }
12 
13  public override bool IsFinished(ref string goTo)
14  {
15  return true;
16  }
17 
18  public override bool SetGoToTarget(string goTo)
19  {
20  return goTo.Equals(Name, System.StringComparison.InvariantCultureIgnoreCase);
21  }
22 
23  public override string ToDebugString()
24  {
25  return $"[-] Label \"{Name}\"";
26  }
27 
28  public override void Reset() { }
29  }
30 }
Defines a point in the event that GoTo actions can jump to.
Definition: Label.cs:7
override bool IsFinished(ref string goTo)
Has the action finished.
Definition: Label.cs:13
override string ToDebugString()
Rich test to display in debugdraw
Definition: Label.cs:23
override bool SetGoToTarget(string goTo)
Definition: Label.cs:18
string Name
Definition: Label.cs:9
override void Reset()
Definition: Label.cs:28
Label(ScriptedEvent parentEvent, ContentXElement element)
Definition: Label.cs:11