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
VanillaContentValidator.cs
Go to the documentation of this file.
1using System;
3using System.Linq;
10
12{
13 [global::Cpp2ILInjected.Token(Token = "0x2000807")]
15 {
16 [global::Cpp2ILInjected.Token(Token = "0x60041D3")]
17 [global::Cpp2ILInjected.Address(RVA = "0x784008", Offset = "0x784008", Length = "0x1F8")]
18 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
19 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
20 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, VanillaContentValidator.TextureMetaData>), Member = ".ctor", ReturnType = typeof(void))]
21 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
22 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "ReadEmbeddedResource", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(string))]
23 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Regex), Member = "Split", MemberParameters = new object[]
24 {
25 typeof(string),
26 typeof(string)
27 }, ReturnType = typeof(string[]))]
28 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "StartsWith", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
29 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Split", MemberParameters = new object[]
30 {
31 typeof(char),
33 }, ReturnType = typeof(string[]))]
34 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(int), Member = "TryParse", MemberParameters = new object[]
35 {
36 typeof(string),
37 typeof(ref int)
38 }, ReturnType = typeof(bool))]
39 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Replace", MemberParameters = new object[]
40 {
41 typeof(char),
42 typeof(char)
43 }, ReturnType = typeof(string))]
44 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, VanillaContentValidator.TextureMetaData>), Member = "set_Item", MemberParameters = new object[]
45 {
46 typeof(object),
48 }, ReturnType = typeof(void))]
49 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 10)]
51 {
52 throw null;
53 }
54
55 [global::Cpp2ILInjected.Token(Token = "0x60041D4")]
56 [global::Cpp2ILInjected.Address(RVA = "0x15A4338", Offset = "0x15A4338", Length = "0xEC")]
57 [global::Cpp2ILInjected.CallAnalysis.DeduplicatedMethod]
58 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
59 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
60 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, VanillaContentValidator.TextureMetaData>), Member = "TryGetValue", MemberParameters = new object[]
61 {
62 typeof(object),
64 }, ReturnType = typeof(bool))]
65 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(VanillaContentValidator.TextureMetaData), Member = "Matches", MemberParameters = new object[]
66 {
69 }, ReturnType = typeof(bool))]
70 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
71 public bool AssetIsValid<T>(T content, string contentPath, out IRejectionReason rejectReason) where T : class
72 {
73 throw null;
74 }
75
76 [global::Cpp2ILInjected.Token(Token = "0x60041D5")]
77 [global::Cpp2ILInjected.Address(RVA = "0x784200", Offset = "0x784200", Length = "0x154")]
78 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
79 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Func<KeyValuePair<object, VanillaContentValidator.TextureMetaData>, object>), Member = ".ctor", MemberParameters = new object[]
80 {
81 typeof(object),
83 }, ReturnType = typeof(void))]
84 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Enumerable[]), Member = "Select", MemberTypeParameters = new object[]
85 {
87 typeof(object)
88 }, MemberParameters = new object[]
89 {
92 }, ReturnType = "System.Collections.Generic.IEnumerable`1<TResult>")]
93 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HashSet<object>), Member = ".ctor", MemberParameters = new object[] { typeof(IEnumerable<object>) }, ReturnType = typeof(void))]
94 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 10)]
96 {
97 throw null;
98 }
99
100 [global::Cpp2ILInjected.Token(Token = "0x400809A")]
102
103 [global::Cpp2ILInjected.Token(Token = "0x400809B")]
104 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
106
107 [global::Cpp2ILInjected.Token(Token = "0x2000808")]
108 private struct TextureMetaData
109 {
110 [global::Cpp2ILInjected.Token(Token = "0x60041D6")]
111 [global::Cpp2ILInjected.Address(RVA = "0x784354", Offset = "0x784354", Length = "0xB0")]
112 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
113 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(VanillaContentValidator), Member = "AssetIsValid", MemberTypeParameters = new object[] { "T" }, MemberParameters = new object[]
114 {
115 "T",
116 typeof(string),
118 }, ReturnType = typeof(bool))]
119 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
120 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
121 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
123 {
124 throw null;
125 }
126
127 [global::Cpp2ILInjected.Token(Token = "0x400809C")]
128 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
129 public int Width;
130
131 [global::Cpp2ILInjected.Token(Token = "0x400809D")]
132 [global::Cpp2ILInjected.FieldOffset(Offset = "0x4")]
133 public int Height;
134 }
135
137 [global::Cpp2ILInjected.Token(Token = "0x2000809")]
138 [Serializable]
139 private sealed class <>c
140 {
141 // Note: this type is marked as 'beforefieldinit'.
142 [global::Cpp2ILInjected.Token(Token = "0x60041D7")]
143 [global::Cpp2ILInjected.Address(RVA = "0x784444", Offset = "0x784444", Length = "0x5C")]
144 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
145 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
146 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
147 static <>c()
148 {
149 throw null;
150 }
151
152 [global::Cpp2ILInjected.Token(Token = "0x60041D8")]
153 [global::Cpp2ILInjected.Address(RVA = "0x7844A0", Offset = "0x7844A0", Length = "0x8")]
154 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
155 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
156 public <>c()
157 {
158 throw null;
159 }
160
161 [global::Cpp2ILInjected.Token(Token = "0x60041D9")]
162 [global::Cpp2ILInjected.Address(RVA = "0x7844A8", Offset = "0x7844A8", Length = "0x3C")]
163 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
164 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
166 {
167 throw null;
168 }
169
170 [global::Cpp2ILInjected.Token(Token = "0x400809E")]
171 public static readonly VanillaContentValidator.<>c <>9;
172
173 [global::Cpp2ILInjected.Token(Token = "0x400809F")]
174 public static Func<KeyValuePair<string, VanillaContentValidator.TextureMetaData>, string> <>9__4_0;
175 }
176 }
177}
class f__AnonymousType0<< Count > j__TPar
bool AssetIsValid< T >(T content, string contentPath, out IRejectionReason rejectReason)
Dictionary< string, VanillaContentValidator.TextureMetaData > _info
bool Matches(Texture2D texture, out IRejectionReason rejectReason)