Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
AIWork_Research.cs
Go to the documentation of this file.
1public class AIWork_Research : AIWork
2{
3 public override int destDist => 1;
4
5 public override AIAct GetWork(Point p)
6 {
7 return CreateProgress();
8 }
9
10 public override void OnCreateProgress(Progress_Custom p)
11 {
12 p.interval = 5;
13 p.onProgressBegin = delegate
14 {
15 owner.PlaySound("read_paper");
16 };
17 }
18}
Definition: AIAct.cs:6
virtual AIProgress CreateProgress()
Definition: AIAct.cs:541
new Chara owner
Definition: AIAct.cs:14
override AIAct GetWork(Point p)
override void OnCreateProgress(Progress_Custom p)
override int destDist
Definition: AIWork.cs:5
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:5404
Definition: Point.cs:9