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
LayoutDefinition.cs
Go to the documentation of this file.
1using System;
3using System.IO;
6using System.Text;
7using UnityEngine;
8
9// Token: 0x0200023F RID: 575
10public class LayoutDefinition
11{
12 // Token: 0x06000D1B RID: 3355 RVA: 0x0003EC24 File Offset: 0x0003CE24
13 private static void SerialiseAtPath(BinaryWriter writer, Transform root)
14 {
15 if (!true)
16 {
17 }
18 int childCount = root.transform.childCount;
19 long num = 0L;
20 Transform child = root.transform.GetChild((int)num);
22 if (component != null)
23 {
24 Type type = component.GetType();
25 string text = component.name;
26 Type type2 = component.GetType();
27 Type type3 = component.GetType();
28 component.SaveFields(writer, type3, component);
29 }
30 int childCount2 = child.childCount;
31 LayoutDefinition.SerialiseAtPath(writer, child);
33 }
34
35 // Token: 0x06000D1C RID: 3356 RVA: 0x0003ECA0 File Offset: 0x0003CEA0
36 public static void LoadReleaseLayout()
37 {
38 bool flag = LayoutDefinition.LoadReleaseLayout(Resources.Load<TextAsset>("Content/UILayout").bytes);
39 Type type;
40 MethodInfo method = type.GetMethod("Awake", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
41 }
42
43 // Token: 0x06000D1D RID: 3357 RVA: 0x0003ECF4 File Offset: 0x0003CEF4
44 public static bool LoadReleaseLayout(byte[] data)
45 {
46 object obj;
47 if (obj != null)
48 {
49 }
50 Type type = 0.GetType();
51 if (!false)
52 {
53 if (!false)
54 {
55 }
56 throw new OutOfMemoryException();
57 }
58 throw new OutOfMemoryException();
59 }
60
61 // Token: 0x06000D1E RID: 3358 RVA: 0x0003ED44 File Offset: 0x0003CF44
62 public void Save(BinaryWriter writer)
63 {
64 Type type = base.GetType();
65 this.SaveFields(writer, type, this);
66 }
67
68 // Token: 0x06000D1F RID: 3359 RVA: 0x0003ED64 File Offset: 0x0003CF64
69 public static bool IsList(Type value)
70 {
71 bool flag;
72 return flag;
73 }
74
75 // Token: 0x06000D20 RID: 3360 RVA: 0x0003ED74 File Offset: 0x0003CF74
77 {
78 }
79
80 // Token: 0x06000D21 RID: 3361 RVA: 0x0003EE84 File Offset: 0x0003D084
81 public void Load(BinaryReader reader)
82 {
83 Type type = base.GetType();
84 this.LoadFields(reader, type, this);
85 }
86
87 // Token: 0x06000D22 RID: 3362 RVA: 0x0003EEA4 File Offset: 0x0003D0A4
89 {
90 bool flag = "Unhandled value type " == "name";
91 Debug.LogError("UID mismatch!");
92 }
93
94 // Token: 0x06000D23 RID: 3363 RVA: 0x0003EF84 File Offset: 0x0003D184
95 public bool RefreshStyles([Optional] string specificStyle)
96 {
97 Type type = base.GetType();
98 return this.RefreshFields(type, this, specificStyle);
99 }
100
101 // Token: 0x06000D24 RID: 3364 RVA: 0x0003EFA4 File Offset: 0x0003D1A4
103 {
104 if (!true)
105 {
106 }
107 bool flag;
108 if (flag)
109 {
110 }
113 {
114 bool flag2;
115 return flag2;
116 }
117 string text;
119 bool flag3;
120 return flag3;
121 }
122
123 // Token: 0x06000D25 RID: 3365 RVA: 0x0003EFCC File Offset: 0x0003D1CC
125 {
126 }
127
128 // Token: 0x06000D26 RID: 3366 RVA: 0x0003EFE0 File Offset: 0x0003D1E0
129 // Note: this type is marked as 'beforefieldinit'.
131 {
132 }
133
134 // Token: 0x040017D9 RID: 6105
135 public string name;
136
137 // Token: 0x040017DA RID: 6106
139
140 // Token: 0x040017DB RID: 6107
142
143 // Token: 0x040017DC RID: 6108
144 private static StringBuilder output;
145}
class f__AnonymousType0<< Count > j__TPar
static bool LoadReleaseLayout(byte[] data)
void LoadFields(BinaryReader reader, Type implementingType, object thisObject)
static void LoadReleaseLayout()
static StringBuilder output
static Dictionary< Type, bool > typesEncountered
void Save(BinaryWriter writer)
void Load(BinaryReader reader)
bool RefreshStyles([Optional] string specificStyle)
void SaveFields(BinaryWriter writer, Type implementingType, object thisObject)
static bool IsList(Type value)
bool RefreshFields(Type implementingType, object thisObject, [Optional] string specificStyle)
static List< LayoutDefinition > UIDefinitions
static void SerialiseAtPath(BinaryWriter writer, Transform root)
new Type GetType()
Definition Type.cs:287
MethodInfo GetMethod(string name)
Definition Type.cs:945
Component GetComponent(Type type)
Definition Component.cs:41
static void LogWarning(object message)
Definition Debug.cs:117
static void LogError(object message)
Definition Debug.cs:62
static Object Load(string path)
Definition Resources.cs:20
Transform GetChild(int index)
Definition Transform.cs:264