LeviLamina
Loading...
Searching...
No Matches
PlayerDataSystem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/PathBuffer.h"
7
8// auto generated forward declare list
9// clang-format off
10class CompoundTag;
11class LevelStorage;
12class Player;
13struct PlayerStorageIds;
14namespace Core { class Path; }
15// clang-format on
16
17namespace PlayerDataSystem {
18// functions
19// NOLINTBEGIN
20MCAPI void forEachIdByPrecedence(
21 ::PlayerStorageIds const& ids,
22 ::std::function<bool(::std::string const&, ::std::string const&)> callback
23);
24
25MCAPI ::Core::PathBuffer<::std::string> getPlayerFilename(::Core::Path const& fullPath, ::std::string const& fn);
26
27MCAPI ::std::string getServerId(::LevelStorage& storage, ::PlayerStorageIds const& saveIds);
28
29MCAPI ::std::string legacyConsolePlayerKey(::std::string const& str);
30
31MCAPI ::std::unique_ptr<::CompoundTag>
32legacyLoadClientPlayer(::std::string const& clientUniqueName, ::Core::Path const& fullPath);
33
34MCAPI ::std::unique_ptr<::CompoundTag> legacyLoadPlayer(::LevelStorage& storage, ::std::string const& clientUniqueName);
35
36MCAPI ::std::unique_ptr<::CompoundTag>
37loadPlayerData(::LevelStorage& storage, ::PlayerStorageIds const& playerIds, bool isHostingPlayer);
38
39MCAPI ::std::unique_ptr<::CompoundTag> loadPlayerDataFromTag(::LevelStorage& storage, ::std::string_view saveTag);
40
41MCAPI ::std::string playerKey(::std::string_view uniqueName);
42
43MCAPI ::std::string serverKey(::LevelStorage& storage, ::Player const& p);
44
45MCAPI ::std::string serverKey(::LevelStorage& storage, ::std::string_view uniqueName);
46// NOLINTEND
47
48} // namespace PlayerDataSystem
Definition CompoundTag.h:13
Definition Path.h:17
Definition LevelStorage.h:25
Definition Path.h:16
Definition Player.h:119
Definition PlayerStorageIds.h:5