Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
PlayerDataSystem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class CompoundTag;
8class LevelStorage;
10// clang-format on
11
12namespace PlayerDataSystem {
13// functions
14// NOLINTBEGIN
15MCNAPI void forEachIdByPrecedence(
16 ::PlayerStorageIds const& ids,
17 ::std::function<bool(::std::string const&, ::std::string const&)> callback
18);
19
20MCNAPI ::std::string getServerId(::LevelStorage& storage, ::PlayerStorageIds const& saveIds, bool isEditorPlayer);
21
22MCNAPI ::std::unique_ptr<::CompoundTag>
23legacyLoadPlayer(::LevelStorage& storage, ::std::string const& clientUniqueName);
24
25MCAPI ::std::unique_ptr<::CompoundTag>
26loadPlayerDataFromTag(::LevelStorage& storage, ::std::string_view saveTag, bool isEditorPlayer);
27
28MCAPI ::std::string playerKey(::std::string_view uniqueName);
29
30MCNAPI ::std::string resolvePlayerKey(::std::string_view uniqueName, bool isEditorPlayer);
31
32#ifdef LL_PLAT_C
33MCAPI ::std::string serverKey(::LevelStorage& storage, ::std::string_view uniqueName, bool isEditorPlayer);
34#endif
35// NOLINTEND
36
37} // namespace PlayerDataSystem
Definition CompoundTag.h:18
Definition LevelStorage.h:26
Definition PlayerStorageIds.h:5