Elin Modding Docs Doc
Loading...
Searching...
No Matches
TaskManager.cs
1using System;
2using System.Collections.Generic;
3using Newtonsoft.Json;
4
5// Token: 0x0200024D RID: 589
6public class TaskManager : EClass
7{
8 // Token: 0x06001045 RID: 4165 RVA: 0x00072DF3 File Offset: 0x00070FF3
9 public void OnLoad()
10 {
11 this.designations.OnLoad();
12 }
13
14 // Token: 0x04000DAF RID: 3503
15 [JsonProperty]
16 public TaskManager.Designations designations = new TaskManager.Designations();
17
18 // Token: 0x04000DB0 RID: 3504
19 public UndoManager undo = new UndoManager();
20
21 // Token: 0x02000929 RID: 2345
22 public class Designations : EClass
23 {
24 // Token: 0x06003D34 RID: 15668 RVA: 0x001451D8 File Offset: 0x001433D8
25 public void OnLoad()
26 {
27 this.mine.OnLoad();
28 this.dig.OnLoad();
29 this.cut.OnLoad();
30 this.harvest.OnLoad();
31 this.build.OnLoad();
32 this.moveInstalled.OnLoad();
33 }
34
35 // Token: 0x06003D35 RID: 15669 RVA: 0x00145227 File Offset: 0x00143427
36 public bool CanRemoveDesignation(Point point)
37 {
38 return this.mapAll.TryGetValue(point.index, null) != null;
39 }
40
41 // Token: 0x06003D36 RID: 15670 RVA: 0x00145240 File Offset: 0x00143440
42 public void TryRemoveDesignation(Point point)
43 {
44 if (!this.CanRemoveDesignation(point))
45 {
46 return;
47 }
48 TaskDesignation taskDesignation = this.mapAll.TryGetValue(point.index, null);
49 if (taskDesignation.owner != null)
50 {
51 taskDesignation.owner.SetAI(new NoGoal());
52 }
53 taskDesignation.Destroy();
54 }
55
56 // Token: 0x040026BC RID: 9916
57 [JsonProperty]
59
60 // Token: 0x040026BD RID: 9917
61 [JsonProperty]
63
64 // Token: 0x040026BE RID: 9918
65 [JsonProperty]
67
68 // Token: 0x040026BF RID: 9919
69 [JsonProperty]
71
72 // Token: 0x040026C0 RID: 9920
73 [JsonProperty]
75
76 // Token: 0x040026C1 RID: 9921
77 [JsonProperty]
79
80 // Token: 0x040026C2 RID: 9922
81 public Dictionary<int, TaskDesignation> mapAll = new Dictionary<int, TaskDesignation>();
82 }
83}
Definition Point.cs:11