Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TaskDesignation.cs
Go to the documentation of this file.
2{
3 public long sync;
4
5 public bool isSynced;
6
8
9 public override bool HasProgress => true;
10
11 public virtual int idMarker => 0;
12
13 public virtual int W => 1;
14
15 public virtual int H => 1;
16
17 public virtual bool ShowOrbit => false;
18
19 public virtual bool Working => owner != null;
20
21 public override bool ShowAuto => true;
22
24
26
27 public long Sync => sync;
28
29 public virtual string GetTextOrbit()
30 {
31 return Name;
32 }
33
35 {
36 TaskDesignation taskDesignation = Designations.mapAll.TryGetValue(pos.index);
37 if (taskDesignation != null)
38 {
39 return taskDesignation != this;
40 }
41 return false;
42 }
43
44 public virtual void DrawMarker(int x, int z, RenderParam p)
45 {
46 int num = (Working ? 20 : 19);
47 if (isBlock)
48 {
50 }
51 else
52 {
54 }
55 }
56
57 public virtual void Draw(int x, int z, RenderParam p)
58 {
60 if (!isSynced)
61 {
63 EClass.scene.syncList.Add(this);
64 }
65 DrawMarker(x, z, p);
66 }
67
68 public virtual void OnEnterScreen()
69 {
70 isSynced = true;
71 }
72
73 public virtual void OnLeaveScreen()
74 {
75 isSynced = false;
76 if ((bool)orbit)
77 {
79 }
80 }
81
82 public virtual void TrySpawnOrbit()
83 {
84 orbit = PoolManager.Spawn<TCOrbitTask>("tcOrbitTask", "Scene/Render/Actor/Component/TCOrbitTask");
85 orbit.SetOwner(this);
86 }
87
88 public void DespawnOrbit()
89 {
91 orbit = null;
92 }
93}
new Chara owner
Definition: AIAct.cs:14
virtual new string Name
Definition: AIAct.cs:68
BaseTileMap tileMap
MeshPass passGuideBlock
Definition: BaseTileMap.cs:137
MeshPass passGuideFloor
Definition: BaseTileMap.cs:139
static CursorInfo Arrow
Definition: CursorSystem.cs:46
Definition: EClass.cs:5
static Scene scene
Definition: EClass.cs:30
static Map _map
Definition: EClass.cs:18
static BaseGameScreen screen
Definition: EClass.cs:32
TaskManager tasks
Definition: Map.cs:34
void Add(Point point, float tile=0f, float color=0f)
Definition: MeshPass.cs:122
int index
Definition: Point.cs:49
static void Despawn(Component c)
Definition: PoolManager.cs:128
static Transform Spawn(string id, string path, Transform parent)
Definition: PoolManager.cs:86
List< ISyncScreen > syncList
Definition: Scene.cs:131
long syncFrame
Definition: Scene.cs:136
void SetOwner(TaskDesignation _task)
Definition: TCOrbitTask.cs:10
TaskManager.Designations Designations
virtual int idMarker
TCOrbitTask orbit
virtual void TrySpawnOrbit()
override CursorInfo CursorIcon
virtual string GetTextOrbit()
virtual void DrawMarker(int x, int z, RenderParam p)
bool PointHasOtherDesignation()
virtual void Draw(int x, int z, RenderParam p)
override bool HasProgress
virtual bool Working
virtual void OnEnterScreen()
virtual void OnLeaveScreen()
override bool ShowAuto
virtual bool ShowOrbit
Designations designations
Definition: TaskManager.cs:62
Point pos
Definition: TaskPoint.cs:11
virtual bool isBlock
Definition: TaskPoint.cs:21