terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
SnapPoint.cs
Go to the documentation of this file.
1using System;
5
6namespace Terraria.UI
7{
8 // Token: 0x0200071A RID: 1818
9 [DebuggerDisplay("Snap Point - {Name} {Id}")]
10 public class SnapPoint
11 {
12 // Token: 0x17000762 RID: 1890
13 // (get) Token: 0x06003C26 RID: 15398 RVA: 0x00235A40 File Offset: 0x00233C40
14 // (set) Token: 0x06003C27 RID: 15399 RVA: 0x00235A54 File Offset: 0x00233C54
15 public int Id
16 {
18 get
19 {
20 return this.<Id>k__BackingField;
21 }
23 private set
24 {
25 this.<Id>k__BackingField = value;
26 }
27 }
28
29 // Token: 0x17000763 RID: 1891
30 // (get) Token: 0x06003C28 RID: 15400 RVA: 0x00235A68 File Offset: 0x00233C68
31 // (set) Token: 0x06003C29 RID: 15401 RVA: 0x00235A90 File Offset: 0x00233C90
33 {
35 get
36 {
37 float x = this.<Position>k__BackingField.X;
38 float y = this.<Position>k__BackingField.Y;
39 Vector2 vector;
40 return vector;
41 }
43 private set
44 {
45 }
46 }
47
48 // Token: 0x06003C2A RID: 15402 RVA: 0x00235AA0 File Offset: 0x00233CA0
49 public SnapPoint(string name, int id, Vector2 anchor, Vector2 offset)
50 {
52 this.Id = id;
53 }
54
55 // Token: 0x06003C2B RID: 15403 RVA: 0x00235AC4 File Offset: 0x00233CC4
56 public void Calculate(UIElement element)
57 {
58 float x = element._dimensions.X;
59 float x2 = this._offset.X;
60 float y = this._offset.Y;
61 if (!true)
62 {
63 }
64 float x3 = this._anchor.X;
65 float y2 = this._anchor.Y;
66 }
67
68 // Token: 0x06003C2C RID: 15404 RVA: 0x00235B1C File Offset: 0x00233D1C
70 {
71 this.<Id>k__BackingField = anchor;
72 }
73
74 // Token: 0x04007B77 RID: 31607
75 public string Name;
76
77 // Token: 0x04007B78 RID: 31608
79 private int <Id>k__BackingField;
80
81 // Token: 0x04007B79 RID: 31609
83 private Vector2 <Position>k__BackingField;
84
85 // Token: 0x04007B7A RID: 31610
87
88 // Token: 0x04007B7B RID: 31611
90 }
91}
class f__AnonymousType0<< Count > j__TPar
void Calculate(UIElement element)
Definition SnapPoint.cs:56
SnapPoint(string name, int id, Vector2 anchor, Vector2 offset)
Definition SnapPoint.cs:49
Vector2< Position > k__BackingField
Definition SnapPoint.cs:83
int< Id > k__BackingField
Definition SnapPoint.cs:79
void ThisIsAHackThatChangesTheSnapPointsInfo(Vector2 anchor, Vector2 offset, int id)
Definition SnapPoint.cs:69
CalculatedStyle _dimensions