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
TextAsset.cs
Go to the documentation of this file.
1using System;
3using System.IO;
5using System.Text;
9
10namespace UnityEngine
11{
12 [NativeHeader("Runtime/Scripting/TextAsset.h")]
13 [global::Cpp2ILInjected.Token(Token = "0x20000A8")]
14 public class TextAsset : Object
15 {
16 [global::Cpp2ILInjected.Token(Token = "0x170000AE")]
17 public extern byte[] bytes
18 {
19 [global::Cpp2ILInjected.Token(Token = "0x600030B")]
20 [global::Cpp2ILInjected.Address(RVA = "0x1F7B800", Offset = "0x1F7B800", Length = "0x3C")]
21 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "CSVReader", Member = "Begin", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
22 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "LayoutDefinition", Member = "LoadReleaseLayout", ReturnType = typeof(void))]
23 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "TextureAtlasDB", Member = "Load", ReturnType = typeof(void))]
24 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Microsoft.Xna.Framework.Content.ContentManager", Member = "LoadSpriteFont", MemberParameters = new object[] { typeof(string) }, ReturnType = "Microsoft.Xna.Framework.Graphics.SpriteFont")]
25 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Terraria.Player", Member = "LoadTutorialPlayer", ReturnType = "Terraria.IO.PlayerFileData")]
26 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Terraria.IO.WorldFile", Member = "GetTutorialMetadata", ReturnType = "Terraria.IO.WorldFileData")]
27 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Terraria.IO.WorldFile", Member = "LoadTutorialOnMainThread", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
28 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 8)]
29 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
30 [MethodImpl(4096)]
31 get;
32 }
33
34 [global::Cpp2ILInjected.Token(Token = "0x170000AF")]
35 public string text
36 {
37 [global::Cpp2ILInjected.Token(Token = "0x600030C")]
38 [global::Cpp2ILInjected.Address(RVA = "0x1F7B83C", Offset = "0x1F7B83C", Length = "0x40")]
39 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
40 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Microsoft.Xna.Framework.TitleContainer", Member = "OpenStream", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(Stream))]
41 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Terraria.WorldBuilding.WorldGenConfiguration", Member = "LoadOnMainThread", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
42 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Terraria.Localization.LanguageManager", Member = "LoadFilesForCulture", MemberParameters = new object[] { "Terraria.Localization.GameCulture" }, ReturnType = typeof(void))]
43 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Terraria.GameContent.Metadata.TileMaterials", Member = "DeserializeEmbeddedResource", MemberTypeParameters = new object[] { "T" }, MemberParameters = new object[] { typeof(string) }, ReturnType = "T")]
44 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Terraria.GameContent.Creative.CreativeItemSacrificesCatalog", Member = "Initialize", ReturnType = typeof(void))]
45 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TextAsset), Member = "ToString", ReturnType = typeof(string))]
46 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 7)]
47 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
48 get
49 {
50 throw null;
51 }
52 }
53
54 [global::Cpp2ILInjected.Token(Token = "0x600030D")]
55 [global::Cpp2ILInjected.Address(RVA = "0x1F7BA6C", Offset = "0x1F7BA6C", Length = "0x4")]
56 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
57 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TextAsset), Member = "get_text", ReturnType = typeof(string))]
58 public override string ToString()
59 {
60 throw null;
61 }
62
63 [global::Cpp2ILInjected.Token(Token = "0x600030E")]
64 [global::Cpp2ILInjected.Address(RVA = "0x1F7B87C", Offset = "0x1F7B87C", Length = "0x1F0")]
65 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
66 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
67 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 16)]
68 internal static string DecodeString(byte[] bytes)
69 {
70 throw null;
71 }
72
73 [global::Cpp2ILInjected.Token(Token = "0x20000A9")]
74 private static class EncodingUtility
75 {
76 [global::Cpp2ILInjected.Token(Token = "0x600030F")]
77 [global::Cpp2ILInjected.Address(RVA = "0x1F7BA70", Offset = "0x1F7BA70", Length = "0x31C")]
78 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
79 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
80 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Encoding), Member = "get_UTF8", ReturnType = typeof(Encoding))]
81 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EncoderReplacementFallback), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
82 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(DecoderReplacementFallback), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
83 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Encoding), Member = "GetEncoding", MemberParameters = new object[]
84 {
85 typeof(int),
88 }, ReturnType = typeof(Encoding))]
89 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UTF32Encoding), Member = ".ctor", MemberParameters = new object[]
90 {
91 typeof(bool),
92 typeof(bool),
93 typeof(bool)
94 }, ReturnType = typeof(void))]
95 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnicodeEncoding), Member = ".ctor", MemberParameters = new object[]
96 {
97 typeof(bool),
98 typeof(bool),
99 typeof(bool)
100 }, ReturnType = typeof(void))]
101 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UTF8Encoding), Member = ".ctor", MemberParameters = new object[]
102 {
103 typeof(bool),
104 typeof(bool)
105 }, ReturnType = typeof(void))]
106 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyValuePair<object, object>), Member = ".ctor", MemberParameters = new object[]
107 {
108 typeof(object),
109 typeof(object)
110 }, ReturnType = typeof(void))]
111 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 17)]
113 {
114 throw null;
115 }
116
117 [global::Cpp2ILInjected.Token(Token = "0x4000366")]
119
120 [global::Cpp2ILInjected.Token(Token = "0x4000367")]
122 }
123 }
124}
class f__AnonymousType0<< Count > j__TPar
static readonly KeyValuePair< byte[], Encoding >[] encodingLookup
Definition TextAsset.cs:118
static readonly Encoding targetEncoding
Definition TextAsset.cs:121
static string DecodeString(byte[] bytes)
Definition TextAsset.cs:68
override string ToString()
Definition TextAsset.cs:58