Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
GenAction.cs
Go to the documentation of this file.
2
4
5public abstract class GenAction : GenBase
6{
8
10
11 private bool _returnFalseOnFailure = true;
12
13 public abstract bool Apply(Point origin, int x, int y, params object[] args);
14
15 protected bool UnitApply(Point origin, int x, int y, params object[] args)
16 {
17 if (OutputData != null)
18 {
19 OutputData.Add(x - origin.X, y - origin.Y);
20 }
21 if (NextAction != null)
22 {
23 return NextAction.Apply(origin, x, y, args);
24 }
25 return true;
26 }
27
29 {
31 return this;
32 }
33
34 protected bool Fail()
35 {
37 }
38
40 {
41 OutputData = data;
42 return this;
43 }
44}
GenAction Output(ShapeData data)
Definition GenAction.cs:39
bool UnitApply(Point origin, int x, int y, params object[] args)
Definition GenAction.cs:15
bool Apply(Point origin, int x, int y, params object[] args)