3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/file/PathBuffer.h"
14namespace Core {
class Path; }
17namespace PlayerDataSystem {
20MCAPI
void forEachIdByPrecedence(
21 ::PlayerStorageIds
const& ids,
22 ::std::function<
bool(::std::string
const&, ::std::string
const&)> callback
25MCAPI ::Core::PathBuffer<::std::string> getPlayerFilename(::Core::Path
const& fullPath, ::std::string
const& fn);
27MCAPI ::std::string getServerId(::LevelStorage& storage, ::PlayerStorageIds
const& saveIds);
29MCAPI ::std::unique_ptr<::CompoundTag>
30legacyLoadClientPlayer(::std::string
const& clientUniqueName, ::Core::Path
const& fullPath);
32MCAPI ::std::unique_ptr<::CompoundTag> legacyLoadPlayer(::LevelStorage& storage, ::std::string
const& clientUniqueName);
34MCAPI ::std::unique_ptr<::CompoundTag>
35loadPlayerData(::LevelStorage& storage, ::PlayerStorageIds
const& playerIds,
bool isHostingPlayer);
37MCAPI ::std::unique_ptr<::CompoundTag> loadPlayerDataFromTag(::LevelStorage& storage, ::std::string_view saveTag);
39MCAPI ::std::string playerKey(::std::string_view uniqueName);
41MCAPI ::std::string serverKey(::LevelStorage& storage, ::Player
const& p);
43MCAPI ::std::string serverKey(::LevelStorage& storage, ::std::string_view uniqueName);
Definition CompoundTag.h:23
Definition LevelStorage.h:25
Definition PlayerStorageIds.h:5