Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
GenShape.cs
Go to the documentation of this file.
2
4
5public abstract class GenShape : GenBase
6{
8
9 protected bool _quitOnFail;
10
11 public abstract bool Perform(Point origin, GenAction action);
12
13 protected bool UnitApply(GenAction action, Point origin, int x, int y, params object[] args)
14 {
15 if (_outputData != null)
16 {
17 _outputData.Add(x - origin.X, y - origin.Y);
18 }
19 return action.Apply(origin, x, y, args);
20 }
21
22 public GenShape Output(ShapeData outputData)
23 {
24 _outputData = outputData;
25 return this;
26 }
27
28 public GenShape QuitOnFail(bool value = true)
29 {
30 _quitOnFail = value;
31 return this;
32 }
33}
bool Perform(Point origin, GenAction action)
GenShape Output(ShapeData outputData)
Definition GenShape.cs:22
GenShape QuitOnFail(bool value=true)
Definition GenShape.cs:28
bool UnitApply(GenAction action, Point origin, int x, int y, params object[] args)
Definition GenShape.cs:13