3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/server/FileReadResult.h"
8#include "mc/server/commands/CommandPermissionLevel.h"
9#include "mc/server/commands/PlayerPermissionLevel.h"
16namespace Core {
class Path; }
17namespace Json {
class Value; }
20class PermissionsFile {
30 PermissionsFile& operator=(PermissionsFile
const&);
31 PermissionsFile(PermissionsFile
const&);
38 MCNAPI
explicit PermissionsFile(
::Core::Path const& filePath);
44 ::CommandPermissionLevel opCommandPermissionLevel
47 MCNAPI ::std::unordered_map<::std::string, ::PlayerPermissionLevel>
const&
getPermissions()
const;
51 MCNAPI
bool isPermissionsSet(::std::string
const& xuid, ::PlayerPermissionLevel permission)
const;
55 ::PlayerPermissionLevel permission
65 ::Bedrock::NotNullNonOwnerPtr<::GameplayUserManager> userManager,
66 ::CommandPermissionLevel opCommandPermissionLevel
70 MCNAPI ~PermissionsFile();
Definition GameplayUserManager.h:22
MCAPI ::std::unordered_map<::std::string, ::PlayerPermissionLevel > const & getPermissions() const
MCAPI void persistPlayerPermissionsToDisk(::std::string const &xuid, ::PlayerPermissionLevel permission)
MCAPI void persistPlayerPermissionsToDisk(::UserEntityIdentifierComponent const &userIdentifier, ::PlayerPermissionLevel permission)
MCAPI ::std::vector<::std::string > getXUIDsByPermission(::PlayerPermissionLevel permission) const
MCAPI::FileReadResult reloadAndApply(::Bedrock::NotNullNonOwnerPtr<::GameplayUserManager > userManager, ::CommandPermissionLevel opCommandPermissionLevel)
MCAPI bool isPermissionsSet(::std::string const &xuid, ::PlayerPermissionLevel permission) const
MCAPI ::std::tuple<::FileReadResult, ::Json::Value > readPermissionFile()
MCAPI void applyPlayerPermissionsFromDisk(::Player &player, ::UserEntityIdentifierComponent const &userIdentifier, ::CommandPermissionLevel opCommandPermissionLevel)
MCAPI::FileReadResult reload()
Definition UserEntityIdentifierComponent.h:17