Elin Modding Docs Doc
Loading...
Searching...
No Matches
ObjInfo.cs
1using System;
2
3// Token: 0x020005D9 RID: 1497
4public class ObjInfo : BaseInspectPos
5{
6 // Token: 0x06002939 RID: 10553 RVA: 0x000E8AA3 File Offset: 0x000E6CA3
7 public static ObjInfo GetTemp(Point _pos)
8 {
9 ObjInfo.Temp.pos.Set(_pos);
10 return ObjInfo.Temp;
11 }
12
13 // Token: 0x0600293A RID: 10554 RVA: 0x000E8ABB File Offset: 0x000E6CBB
14 public static ObjInfo GetTempList(Point _pos)
15 {
16 if (!ObjInfo.TempList.pos.Equals(_pos))
17 {
18 ObjInfo.TempList = new ObjInfo();
19 }
20 ObjInfo.TempList.pos.Set(_pos);
21 return ObjInfo.TempList;
22 }
23
24 // Token: 0x17000BF1 RID: 3057
25 // (get) Token: 0x0600293B RID: 10555 RVA: 0x000E8AEF File Offset: 0x000E6CEF
26 public SourceObj.Row source
27 {
28 get
29 {
30 return this.pos.sourceObj;
31 }
32 }
33
34 // Token: 0x0600293C RID: 10556 RVA: 0x000E8AFC File Offset: 0x000E6CFC
35 public static bool _CanInspect(Point pos)
36 {
37 return pos.HasObj && (!pos.cell.HasFullBlock || pos.sourceObj.tileType.IsBlockMount);
38 }
39
40 // Token: 0x17000BF2 RID: 3058
41 // (get) Token: 0x0600293D RID: 10557 RVA: 0x000E8B27 File Offset: 0x000E6D27
42 public override bool CanInspect
43 {
44 get
45 {
46 return ObjInfo._CanInspect(this.pos);
47 }
48 }
49
50 // Token: 0x17000BF3 RID: 3059
51 // (get) Token: 0x0600293E RID: 10558 RVA: 0x000E8B34 File Offset: 0x000E6D34
52 public override string InspectName
53 {
54 get
55 {
56 string text = this.pos.cell.GetObjName() + (EClass.debug.showExtra ? (" " + this.pos.cell.matObj.alias) : "");
57 if (this.pos.growth != null)
58 {
59 if (this.pos.growth.CanHarvest())
60 {
61 return "growth_harvest".lang(text, null, null, null, null);
62 }
63 if (this.pos.growth.IsWithered())
64 {
65 return "growth_withered".lang(text, null, null, null, null);
66 }
67 if (this.pos.growth.IsMature)
68 {
69 return "growth_mature".lang(text, null, null, null, null);
70 }
71 }
72 return text;
73 }
74 }
75
76 // Token: 0x0600293F RID: 10559 RVA: 0x000E8C00 File Offset: 0x000E6E00
77 public override void WriteNote(UINote n, Action<UINote> onWriteNote = null, IInspect.NoteMode mode = IInspect.NoteMode.Default, Recipe recipe = null)
78 {
79 n.Clear();
80 UIItem uiitem = n.AddHeaderCard(this.source.GetName(), null);
81 this.source.SetImage(uiitem.image2, null, this.source.GetColorInt(this.pos.cell.matObj), true, 0, 0);
82 n.AddText("isMadeOf".lang(this.source.GetText("name", false), null, null, null, null), FontColor.DontChange);
83 n.Build();
84 }
85
86 // Token: 0x04001749 RID: 5961
87 public static ObjInfo Temp = new ObjInfo();
88
89 // Token: 0x0400174A RID: 5962
90 public static ObjInfo TempList = new ObjInfo();
91}
Definition Point.cs:11