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.
1
using
System
;
2
using
Terraria.Utilities
;
3
4
namespace
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
{
60
this._path
=
newPath
;
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
}
76
return
FileUtilities
.
GetFileName
(path,
includeExtension
);
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
115
public
FileMetadata
Metadata
;
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
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Terraria.IO.FileData._isCloudSave
bool _isCloudSave
Definition
FileData.cs:112
Terraria.IO.FileData.FileData
FileData(string type, string path, bool isCloud)
Definition
FileData.cs:46
Terraria.IO.FileData.Name
string Name
Definition
FileData.cs:118
Terraria.IO.FileData.SetFavorite
void SetFavorite(bool favorite, bool saveChanges=true)
Definition
FileData.cs:80
Terraria.IO.FileData.GetFileName
string GetFileName(bool includeExtension=true)
Definition
FileData.cs:70
Terraria.IO.FileData.IsCloudSave
bool IsCloudSave
Definition
FileData.cs:22
Terraria.IO.FileData._path
string _path
Definition
FileData.cs:109
Terraria.IO.FileData.MoveToLocal
void MoveToLocal()
Terraria.IO.FileData.MoveToCloud
void MoveToCloud()
Terraria.IO.FileData.UpdatePath
void UpdatePath(string newPath)
Definition
FileData.cs:58
Terraria.IO.FileData.Metadata
FileMetadata Metadata
Definition
FileData.cs:115
Terraria.IO.FileData.SetAsActive
void SetAsActive()
Terraria.IO.FileData.ToggleFavorite
void ToggleFavorite()
Definition
FileData.cs:64
Terraria.IO.FileData.IsFavorite
bool IsFavorite
Definition
FileData.cs:32
Terraria.IO.FileData.FileData
FileData(string type)
Definition
FileData.cs:40
Terraria.IO.FileData._isFavorite
bool _isFavorite
Definition
FileData.cs:124
Terraria.IO.FileData.Path
string Path
Definition
FileData.cs:12
Terraria.IO.FileData.Type
readonly string Type
Definition
FileData.cs:121
Terraria.IO.FileData
Definition
FileData.cs:8
Terraria.IO.FileMetadata
Definition
FileMetadata.cs:9
Terraria.Main.LocalFavoriteData
static FavoritesFile LocalFavoriteData
Definition
Main.cs:337
Terraria.Main
Definition
Main.cs:67
Terraria.Utilities.FileUtilities.GetFileName
static string GetFileName(string path, bool includeExtension=true)
Definition
FileUtilities.cs:179
Terraria.Utilities.FileUtilities
Definition
FileUtilities.cs:11
System
Definition
__ComObject.cs:4
Terraria.IO
Definition
ChestInfo_OldMobile.cs:5
Terraria.Utilities
Definition
Bits64.cs:5
source
Terraria
IO
FileData.cs
Generated by
1.10.0