Elin Modding Docs Doc
Loading...
Searching...
No Matches
BlockInfo.cs
1using System;
2
3// Token: 0x020005D8 RID: 1496
5{
6 // Token: 0x06002930 RID: 10544 RVA: 0x000E897D File Offset: 0x000E6B7D
7 public static BlockInfo GetTemp(Point _pos)
8 {
9 BlockInfo.Temp.pos.Set(_pos);
10 return BlockInfo.Temp;
11 }
12
13 // Token: 0x06002931 RID: 10545 RVA: 0x000E8995 File Offset: 0x000E6B95
14 public static BlockInfo GetTempList(Point _pos)
15 {
16 if (!BlockInfo.TempList.pos.Equals(_pos))
17 {
18 BlockInfo.TempList = new BlockInfo();
19 }
20 BlockInfo.TempList.pos.Set(_pos);
21 return BlockInfo.TempList;
22 }
23
24 // Token: 0x17000BEE RID: 3054
25 // (get) Token: 0x06002932 RID: 10546 RVA: 0x000E89C9 File Offset: 0x000E6BC9
26 public SourceBlock.Row source
27 {
28 get
29 {
30 return this.pos.sourceBlock;
31 }
32 }
33
34 // Token: 0x06002933 RID: 10547 RVA: 0x000E89D6 File Offset: 0x000E6BD6
35 public static bool _CanInspect(Point pos)
36 {
37 return pos.HasNonWallBlock;
38 }
39
40 // Token: 0x17000BEF RID: 3055
41 // (get) Token: 0x06002934 RID: 10548 RVA: 0x000E89DE File Offset: 0x000E6BDE
42 public override bool CanInspect
43 {
44 get
45 {
46 return BlockInfo._CanInspect(this.pos);
47 }
48 }
49
50 // Token: 0x17000BF0 RID: 3056
51 // (get) Token: 0x06002935 RID: 10549 RVA: 0x000E89EB File Offset: 0x000E6BEB
52 public override string InspectName
53 {
54 get
55 {
56 return this.source.GetName();
57 }
58 }
59
60 // Token: 0x06002936 RID: 10550 RVA: 0x000E89F8 File Offset: 0x000E6BF8
61 public override void WriteNote(UINote n, Action<UINote> onWriteNote = null, IInspect.NoteMode mode = IInspect.NoteMode.Default, Recipe recipe = null)
62 {
63 n.Clear();
64 UIItem uiitem = n.AddHeaderCard(this.pos.cell.GetBlockName(), null);
65 this.source.SetImage(uiitem.image2, null, this.source.GetColorInt(this.pos.matBlock), true, 0, 0);
66 n.AddText("isMadeOf".lang(this.pos.cell.matBlock.GetText("name", false), null, null, null, null), FontColor.DontChange);
67 n.Build();
68 }
69
70 // Token: 0x04001747 RID: 5959
71 public static BlockInfo Temp = new BlockInfo();
72
73 // Token: 0x04001748 RID: 5960
74 public static BlockInfo TempList = new BlockInfo();
75}
Definition Point.cs:11