LeviLamina
Loading...
Searching...
No Matches
IScriptDedicatedServerUtils.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/PlayerPermissionLevel.h"
7
8// auto generated forward declare list
9// clang-format off
11// clang-format on
12
14public:
15 // IScriptDedicatedServerUtils inner types declare
16 // clang-format off
17 struct AllowListEntryInfo;
18 // clang-format on
19
20 // IScriptDedicatedServerUtils inner types define
21 struct AllowListEntryInfo {
22 public:
23 // member variables
24 // NOLINTBEGIN
28 // NOLINTEND
29
30 public:
31 // prevent constructor by default
32 AllowListEntryInfo& operator=(AllowListEntryInfo const&);
33 AllowListEntryInfo(AllowListEntryInfo const&);
34 AllowListEntryInfo();
35
36 public:
37 // member functions
38 // NOLINTBEGIN
39#ifdef LL_PLAT_S
40 MCNAPI ~AllowListEntryInfo();
41#endif
42 // NOLINTEND
43
44 public:
45 // destructor thunk
46 // NOLINTBEGIN
47#ifdef LL_PLAT_S
48 MCNAPI void $dtor();
49#endif
50 // NOLINTEND
51 };
52
53public:
54 // virtual functions
55 // NOLINTBEGIN
56 virtual ~IScriptDedicatedServerUtils() = default;
57
58 virtual bool saveHold() = 0;
59
60 virtual bool saveResume() = 0;
61
62 virtual ::std::optional<::std::vector<::SnapshotFilenameAndLength>> saveQuery() = 0;
63
64 virtual bool addToAllowList(::IScriptDedicatedServerUtils::AllowListEntryInfo const& identity) = 0;
65
66 virtual bool removeFromAllowList(::IScriptDedicatedServerUtils::AllowListEntryInfo const& identity) = 0;
67
68 virtual bool allowListContains(::IScriptDedicatedServerUtils::AllowListEntryInfo const& identity) = 0;
69
70 virtual ::std::vector<::IScriptDedicatedServerUtils::AllowListEntryInfo> getAllowListEntries() const = 0;
71
72 virtual void clearAllowList() = 0;
73
74 virtual bool reloadAllowListFile() = 0;
75
76 virtual void setAllowListEnabled(bool enabled) = 0;
77
78 virtual bool getAllowListEnabled() const = 0;
79
80 virtual bool reloadPermissionsFile() = 0;
81
82 virtual ::std::unordered_map<::std::string, ::PlayerPermissionLevel> const& getPermissions() const = 0;
83
84 virtual bool setPermissions(::std::unordered_map<::std::string, ::PlayerPermissionLevel> const& permissionData) = 0;
85
86 virtual bool setPlayerPermission(::std::string const& xuid, ::PlayerPermissionLevel permission) = 0;
87
88 virtual void stopServer() = 0;
89
90 virtual bool reloadScriptConfig() = 0;
91
92 virtual bool reloadCDNConfig() = 0;
93
94 virtual ::std::string const& getSessionID() const = 0;
95 // NOLINTEND
96};
Definition IScriptDedicatedServerUtils.h:13
Definition IScriptDedicatedServerUtils.h:21
Definition SnapshotFilenameAndLength.h:5
Definition Alias.h:14