9 public override bool CancelWhenDamaged
19 public override int PerformDistance
23 return base.PerformDistance;
29 public override CursorInfo CursorIcon
39 public override bool CloseLayers
43 return this.closeLayers;
48 public override string GetText(
string str =
"")
50 return Lang.Get(this.lang);
54 public DynamicAIAct(
string _lang, Func<bool> _onPerform =
null,
bool _closeLayers =
false)
57 this.onPerform = _onPerform;
58 this.closeLayers = _closeLayers;
62 public override bool Perform()
64 if (this.pos !=
null || this.wait > 1)
66 return base.Perform();
68 return this.onPerform !=
null && this.onPerform();
72 public override IEnumerable<
AIAct.Status> Run()
76 yield
return base.DoGotoInteraction(this.pos,
null);
77 this.owner.LookAt(this.pos);
79 yield
return base.DoWait(this.wait);
80 if (this.onPerform !=
null)
91 public Func<bool> onPerform;
94 public bool closeLayers;
100 public CursorInfo cursor;