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
FileData.cs
Go to the documentation of this file.
1using System;
3
4namespace Terraria.IO
5{
6 // Token: 0x0200055E RID: 1374
7 public abstract class FileData
8 {
9 // Token: 0x1700066C RID: 1644
10 // (get) Token: 0x06003366 RID: 13158 RVA: 0x001FF5C4 File Offset: 0x001FD7C4
11 public string Path
12 {
13 get
14 {
15 return this._path;
16 }
17 }
18
19 // Token: 0x1700066D RID: 1645
20 // (get) Token: 0x06003367 RID: 13159 RVA: 0x001FF5D8 File Offset: 0x001FD7D8
21 public bool IsCloudSave
22 {
23 get
24 {
25 return this._isCloudSave;
26 }
27 }
28
29 // Token: 0x1700066E RID: 1646
30 // (get) Token: 0x06003368 RID: 13160 RVA: 0x001FF5EC File Offset: 0x001FD7EC
31 public bool IsFavorite
32 {
33 get
34 {
35 return this._isFavorite;
36 }
37 }
38
39 // Token: 0x06003369 RID: 13161 RVA: 0x001FF600 File Offset: 0x001FD800
40 protected FileData(string type)
41 {
42 this.Type = type;
43 }
44
45 // Token: 0x0600336A RID: 13162 RVA: 0x001FF61C File Offset: 0x001FD81C
46 protected FileData(string type, string path, bool isCloud)
47 {
48 this.Type = type;
49 this._path = path;
50 if (true)
51 {
52 return;
53 }
54 bool flag = Main.LocalFavoriteData.IsFavorite(this);
55 }
56
57 // Token: 0x0600336B RID: 13163 RVA: 0x001FF650 File Offset: 0x001FD850
58 public void UpdatePath(string newPath)
59 {
61 }
62
63 // Token: 0x0600336C RID: 13164 RVA: 0x001FF664 File Offset: 0x001FD864
64 public void ToggleFavorite()
65 {
66 bool isFavorite = this._isFavorite;
67 }
68
69 // Token: 0x0600336D RID: 13165 RVA: 0x001FF678 File Offset: 0x001FD878
70 public string GetFileName(bool includeExtension = true)
71 {
72 string path = this._path;
73 if (!true)
74 {
75 }
77 }
78
79 // Token: 0x0600336E RID: 13166 RVA: 0x001FF698 File Offset: 0x001FD898
80 public void SetFavorite(bool favorite, bool saveChanges = true)
81 {
82 bool isCloudSave = this._isCloudSave;
83 if (true)
84 {
85 if (isCloudSave)
86 {
87 return;
88 }
89 }
90 else
91 {
92 while (isCloudSave)
93 {
94 }
95 }
96 Main.LocalFavoriteData.SaveFavorite(this);
97 }
98
99 // Token: 0x0600336F RID: 13167
100 public abstract void SetAsActive();
101
102 // Token: 0x06003370 RID: 13168
103 public abstract void MoveToCloud();
104
105 // Token: 0x06003371 RID: 13169
106 public abstract void MoveToLocal();
107
108 // Token: 0x04003C35 RID: 15413
109 protected string _path;
110
111 // Token: 0x04003C36 RID: 15414
112 protected bool _isCloudSave;
113
114 // Token: 0x04003C37 RID: 15415
116
117 // Token: 0x04003C38 RID: 15416
118 public string Name;
119
120 // Token: 0x04003C39 RID: 15417
121 public readonly string Type;
122
123 // Token: 0x04003C3A RID: 15418
124 protected bool _isFavorite;
125 }
126}
class f__AnonymousType0<< Count > j__TPar
FileData(string type, string path, bool isCloud)
Definition FileData.cs:46
void SetFavorite(bool favorite, bool saveChanges=true)
Definition FileData.cs:80
string GetFileName(bool includeExtension=true)
Definition FileData.cs:70
void UpdatePath(string newPath)
Definition FileData.cs:58
FileMetadata Metadata
Definition FileData.cs:115
FileData(string type)
Definition FileData.cs:40
readonly string Type
Definition FileData.cs:121
static FavoritesFile LocalFavoriteData
Definition Main.cs:337
static string GetFileName(string path, bool includeExtension=true)