8 public override string ID
22 return this._targetType;
28 public override bool IsHostileAct
32 return this.isHostileAct;
38 public override CursorInfo CursorIcon
48 public override bool CloseLayers
52 return this.closeLayers;
57 public override string GetText(
string str =
"")
59 return Lang.Get(this.
id);
64 public override int PerformDistance
74 public override bool CanPressRepeat
78 return this.canRepeat !=
null && this.canRepeat();
83 public DynamicAct(
string _id, Func<bool> _onPerform =
null,
bool _closeLayers =
false)
86 this.onPerform = _onPerform;
87 this.closeLayers = _closeLayers;
88 DynamicAct.lastAct =
this;
93 public override bool LocalAct
97 return !(this.id ==
"actNewZone") && this.localAct;
102 public override bool Perform()
104 return this.onPerform !=
null && this.onPerform();
111 public new string id;
114 public Func<bool> onPerform;
117 public Func<bool> canRepeat;
120 public bool closeLayers;
123 public bool isHostileAct;
126 public bool localAct =
true;
129 public CursorInfo cursor;