terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
HalfVector2.cs
Go to the documentation of this file.
1using System;
2using System.IO;
5using Terraria;
7
9{
10 [global::Cpp2ILInjected.Token(Token = "0x20003B6")]
11 public struct HalfVector2 : IPackedVector<uint>, IPackedVector, IEquatable<HalfVector2>
12 {
13 [global::Cpp2ILInjected.Token(Token = "0x600199B")]
14 [global::Cpp2ILInjected.Address(RVA = "0xAC9758", Offset = "0xAC9758", Length = "0x40")]
15 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
16 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NetMessage), Member = "SendData", MemberParameters = new object[]
17 {
18 typeof(int),
19 typeof(int),
20 typeof(int),
22 typeof(int),
23 typeof(float),
24 typeof(float),
25 typeof(float),
26 typeof(int),
27 typeof(int),
28 typeof(int)
29 }, ReturnType = typeof(void))]
30 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Utils), Member = "WritePackedVector2", MemberParameters = new object[]
31 {
34 }, ReturnType = typeof(void))]
35 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
36 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HalfTypeHelper), Member = "Convert", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(ushort))]
37 public HalfVector2(float x, float y)
38 {
39 throw null;
40 }
41
42 [global::Cpp2ILInjected.Token(Token = "0x600199C")]
43 [global::Cpp2ILInjected.Address(RVA = "0xAC97CC", Offset = "0xAC97CC", Length = "0x40")]
44 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
45 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
46 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HalfTypeHelper), Member = "Convert", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(ushort))]
47 public HalfVector2(Vector2 vector)
48 {
49 throw null;
50 }
51
52 [global::Cpp2ILInjected.Token(Token = "0x600199D")]
53 [global::Cpp2ILInjected.Address(RVA = "0xAC980C", Offset = "0xAC980C", Length = "0x40")]
54 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
55 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
56 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HalfTypeHelper), Member = "Convert", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(ushort))]
58 {
59 throw null;
60 }
61
62 [global::Cpp2ILInjected.Token(Token = "0x600199E")]
63 [global::Cpp2ILInjected.Address(RVA = "0xAC9798", Offset = "0xAC9798", Length = "0x34")]
64 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
65 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
66 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HalfTypeHelper), Member = "Convert", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(ushort))]
67 private static uint PackHelper(float vectorX, float vectorY)
68 {
69 throw null;
70 }
71
72 [global::Cpp2ILInjected.Token(Token = "0x600199F")]
73 [global::Cpp2ILInjected.Address(RVA = "0xAC984C", Offset = "0xAC984C", Length = "0x34")]
74 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MessageBuffer), Member = "ProcessData", MemberParameters = new object[]
75 {
76 typeof(byte[]),
77 typeof(int),
78 typeof(ref int)
79 }, ReturnType = typeof(void))]
80 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Utils), Member = "ReadPackedVector2", MemberParameters = new object[] { typeof(BinaryReader) }, ReturnType = typeof(Vector2))]
81 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
82 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HalfTypeHelper), Member = "Convert", MemberParameters = new object[] { typeof(ushort) }, ReturnType = typeof(float))]
84 {
85 throw null;
86 }
87
88 [global::Cpp2ILInjected.Token(Token = "0x60019A0")]
89 [global::Cpp2ILInjected.Address(RVA = "0xAC9880", Offset = "0xAC9880", Length = "0x5C")]
90 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
91 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HalfTypeHelper), Member = "Convert", MemberParameters = new object[] { typeof(ushort) }, ReturnType = typeof(float))]
92 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector4), Member = ".ctor", MemberParameters = new object[]
93 {
94 typeof(float),
95 typeof(float),
96 typeof(float),
97 typeof(float)
98 }, ReturnType = typeof(void))]
103
104 [CLSCompliant(false)]
105 [global::Cpp2ILInjected.Token(Token = "0x17000364")]
106 public uint PackedValue
107 {
108 [global::Cpp2ILInjected.Token(Token = "0x60019A1")]
109 [global::Cpp2ILInjected.Address(RVA = "0xAC98DC", Offset = "0xAC98DC", Length = "0x8")]
110 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
111 get
112 {
113 throw null;
114 }
115 [global::Cpp2ILInjected.Token(Token = "0x60019A2")]
116 [global::Cpp2ILInjected.Address(RVA = "0xAC98E4", Offset = "0xAC98E4", Length = "0x8")]
117 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
118 set
119 {
120 throw null;
121 }
122 }
123
124 [global::Cpp2ILInjected.Token(Token = "0x60019A3")]
125 [global::Cpp2ILInjected.Address(RVA = "0xAC98EC", Offset = "0xAC98EC", Length = "0x3C")]
126 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
127 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HalfTypeHelper), Member = "Convert", MemberParameters = new object[] { typeof(ushort) }, ReturnType = typeof(float))]
128 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "ToString", ReturnType = typeof(string))]
129 public override string ToString()
130 {
131 throw null;
132 }
133
134 [global::Cpp2ILInjected.Token(Token = "0x60019A4")]
135 [global::Cpp2ILInjected.Address(RVA = "0xAC9928", Offset = "0xAC9928", Length = "0x8")]
136 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
137 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(uint), Member = "GetHashCode", ReturnType = typeof(int))]
138 public override int GetHashCode()
139 {
140 throw null;
141 }
142
143 [global::Cpp2ILInjected.Token(Token = "0x60019A5")]
144 [global::Cpp2ILInjected.Address(RVA = "0xAC9930", Offset = "0xAC9930", Length = "0x7C")]
145 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
146 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
147 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(uint), Member = "Equals", MemberParameters = new object[] { typeof(uint) }, ReturnType = typeof(bool))]
148 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
149 public override bool Equals(object obj)
150 {
151 throw null;
152 }
153
154 [global::Cpp2ILInjected.Token(Token = "0x60019A6")]
155 [global::Cpp2ILInjected.Address(RVA = "0xAC99AC", Offset = "0xAC99AC", Length = "0x8")]
156 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
157 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(uint), Member = "Equals", MemberParameters = new object[] { typeof(uint) }, ReturnType = typeof(bool))]
159 {
160 throw null;
161 }
162
163 [global::Cpp2ILInjected.Token(Token = "0x60019A7")]
164 [global::Cpp2ILInjected.Address(RVA = "0xAC99B4", Offset = "0xAC99B4", Length = "0x20")]
165 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
166 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(uint), Member = "Equals", MemberParameters = new object[] { typeof(uint) }, ReturnType = typeof(bool))]
167 public static bool operator ==(HalfVector2 a, HalfVector2 b)
168 {
169 throw null;
170 }
171
172 [global::Cpp2ILInjected.Token(Token = "0x60019A8")]
173 [global::Cpp2ILInjected.Address(RVA = "0xAC99D4", Offset = "0xAC99D4", Length = "0x24")]
174 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
175 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
176 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(uint), Member = "Equals", MemberParameters = new object[] { typeof(uint) }, ReturnType = typeof(bool))]
177 public static bool operator !=(HalfVector2 a, HalfVector2 b)
178 {
179 throw null;
180 }
181
182 [global::Cpp2ILInjected.Token(Token = "0x40027A2")]
183 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
184 private uint packedValue;
185 }
186}
class f__AnonymousType0<< Count > j__TPar
static uint PackHelper(float vectorX, float vectorY)