LeviLamina
Loading...
Searching...
No Matches
AllowList.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/IJsonSerializable.h"
7
8// auto generated forward declare list
9// clang-format off
10class AllowListEntry;
11namespace Json { class Value; }
12namespace mce { class UUID; }
13// clang-format on
14
16public:
17 // AllowList inner types declare
18 // clang-format off
20 // clang-format on
21
22 // AllowList inner types define
23 struct AllowListEntryMatcher {
24 public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 32, ::std::string> mName;
28 ::ll::TypedStorage<8, 32, ::std::string> mXuid;
29 // NOLINTEND
30
31 public:
32 // prevent constructor by default
33 AllowListEntryMatcher();
34
35 public:
36 // member functions
37 // NOLINTBEGIN
38 MCAPI AllowListEntryMatcher(::std::string name, ::std::string xuid);
39 // NOLINTEND
40
41 public:
42 // constructor thunks
43 // NOLINTBEGIN
44 MCAPI void* $ctor(::std::string name, ::std::string xuid);
45 // NOLINTEND
46 };
47
48public:
49 // member variables
50 // NOLINTBEGIN
51 ::ll::TypedStorage<8, 24, ::std::vector<::AllowListEntry>> mEntries;
52 ::ll::TypedStorage<8, 64, ::std::function<void()>> mSyncCallback;
53 // NOLINTEND
54
55public:
56 // virtual functions
57 // NOLINTBEGIN
58 virtual void serialize(::Json::Value& root) /*override*/;
59
60 virtual void deserialize(::Json::Value& root) /*override*/;
61
62#ifdef LL_PLAT_S
63 virtual ~AllowList() /*override*/ = default;
64#else // LL_PLAT_C
65 virtual ~AllowList() /*override*/;
66#endif
67
68 // NOLINTEND
69
70public:
71 // member functions
72 // NOLINTBEGIN
73 MCAPI bool isIgnoringPlayerLimit(::mce::UUID const& uuid, ::std::string const& xuid) const;
74
75 MCAPI void tryUpdateEntries(::mce::UUID const& uuid, ::std::string const& xuid, ::std::string const& name);
76 // NOLINTEND
77
78public:
79 // constructor thunks
80 // NOLINTBEGIN
81 MCAPI_C void* $ctor(::std::function<void()> syncCallback);
82 // NOLINTEND
83
84public:
85 // destructor thunk
86 // NOLINTBEGIN
87 MCAPI void $dtor();
88 // NOLINTEND
89
90public:
91 // virtual function thunks
92 // NOLINTBEGIN
93 MCAPI void $serialize(::Json::Value& root);
94
95 MCAPI void $deserialize(::Json::Value& root);
96
97
98 // NOLINTEND
99
100public:
101 // vftables
102 // NOLINTBEGIN
103 MCNAPI static void** $vftable();
104 // NOLINTEND
105};
Definition AllowListEntry.h:14
Definition AllowList.h:15
static MCAPI void ** $vftable()
Definition IJsonSerializable.h:10
MCAPI void $dtor()
Definition Value.h:16
Definition UUID.h:7
Definition AllowList.h:23