Elin Modding Docs Doc
Loading...
Searching...
No Matches
InspectGroupObj.cs
1using System;
2
3// Token: 0x020005DD RID: 1501
4public class InspectGroupObj : InspectGroup<ObjInfo>
5{
6 // Token: 0x17000BF9 RID: 3065
7 // (get) Token: 0x06002954 RID: 10580 RVA: 0x000E903B File Offset: 0x000E723B
8 public override string MultiName
9 {
10 get
11 {
12 return "Obj";
13 }
14 }
15
16 // Token: 0x06002955 RID: 10581 RVA: 0x000E9044 File Offset: 0x000E7244
17 public override void OnSetActions()
18 {
19 CellDetail detail = base.FirstTarget.pos.detail;
20 TaskDesignation taskDesignation = (detail != null) ? detail.designation : null;
21 if (taskDesignation is TaskCut)
22 {
23 base.Add("cancel".lang() + "\n(" + taskDesignation.Name + ")", "", delegate(ObjInfo t)
24 {
25 CellDetail detail2 = t.pos.detail;
26 TaskDesignation taskDesignation2 = (detail2 != null) ? detail2.designation : null;
27 if (taskDesignation2 is TaskCut)
28 {
29 taskDesignation2.Destroy();
30 }
31 }, true, 0, false);
32 return;
33 }
34 base.Add("Cut", "", delegate(ObjInfo t)
35 {
36 Point pos = t.pos.Copy();
37 if (!EClass._map.tasks.designations.cut.TryAdd(new TaskCut
38 {
39 pos = pos
40 }) && base.Solo)
41 {
42 SE.Beep();
43 }
44 }, true, 0, false);
45 }
46}
Definition Point.cs:11