44        : base(
"Player", path, cloudSave)
 
 
   52        playerFileData.Player = player;
 
   53        playerFileData._isCloudSave = SocialAPI.Cloud != 
null && 
SocialAPI.
Cloud.EnabledByDefault;
 
   55        (playerFileData.IsCloudSave ? Main.CloudFavoritesData : 
Main.
LocalFavoriteData).ClearEntry(playerFileData);
 
   57        return playerFileData;
 
 
   62        Main.ActivePlayerFileData = 
this;
 
 
   82        string fileName = 
GetFileName(includeExtension: 
false);
 
   87            for (
int i = 0; i < files.Length; i++)
 
   95        _path = playerPathFromName;
 
 
  110        string fileName = 
GetFileName(includeExtension: 
false);
 
  114            select path).ToList())
 
  121        _path = playerPathFromName;
 
 
  131        string value = mapPath.Replace(
'\\', 
'/');
 
 
  138        bool flag2 = Main.instance.IsActive && !flag;
 
 
  212            Player.name = newName.Trim();
 
 
 
static string[] GetFiles(string path)
static bool Exists([NotNullWhen(true)] string? path)
static string Combine(string path1, string path2)
static readonly char DirectorySeparatorChar
string GetFileName(bool includeExtension=true)
override void MoveToLocal()
readonly Stopwatch _timer
override void MoveToCloud()
PlayerFileData(string path, bool cloudSave)
bool MapBelongsToPath(string mapPath, string filePath)
void Rename(string newName)
override void SetAsActive()
void SetPlayTime(TimeSpan time)
static PlayerFileData CreateAndSave(Player player)
void UpdatePlayTimerAndKeepState()
static FavoritesFile CloudFavoritesData
static FavoritesFile LocalFavoriteData
static string GetPlayerPathFromName(string playerName, bool cloudSave)
static string CloudPlayerPath
static void SavePlayer(PlayerFileData playerFile, bool skipMapSave=false)
static Terraria.Social.Base.CloudSocialModule Cloud
static bool MoveToCloud(string localPath, string cloudPath)
static string GetFileName(string path, bool includeExtension=true)
static bool MoveToLocal(string cloudPath, string localPath)
static readonly TimeSpan Zero