LeviLamina
Loading...
Searching...
No Matches
ScriptPackConfigurationManager.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#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
8#include "mc/scripting/ScriptPackConfiguration.h"
9#include "mc/server/commands/CommandsRegistryConfiguration.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace cereal { struct ReflectionCtx; }
14// clang-format on
15
16class ScriptPackConfigurationManager : public ::Bedrock::EnableNonOwnerReferences {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 40, ::std::optional<::Core::PathBuffer<::std::string>> const> mConfigDirectory;
21 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::ScriptPackConfiguration>> mPackConfigurations;
22 ::ll::TypedStorage<8, 224, ::ScriptPackConfiguration> mDefaultPackConfiguration;
23 ::ll::TypedStorage<8, 104, ::std::optional<::CommandsRegistryConfiguration>> mCommandsRegistryConfiguration;
24 ::ll::TypedStorage<4, 8, ::std::optional<uint>> mSentryMaxEventsPerWindow;
25 ::ll::TypedStorage<8, 16, ::std::optional<::std::chrono::seconds>> mSentryRateLimitWindow;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 ScriptPackConfigurationManager& operator=(ScriptPackConfigurationManager const&);
31 ScriptPackConfigurationManager();
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 virtual ~ScriptPackConfigurationManager() /*override*/;
37 // NOLINTEND
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCNAPI ScriptPackConfigurationManager(::ScriptPackConfigurationManager&&);
43
44 MCNAPI ScriptPackConfigurationManager(::ScriptPackConfigurationManager const&);
45
46 MCNAPI explicit ScriptPackConfigurationManager(::std::optional<::Core::PathBuffer<::std::string>> configDirectory);
47
48 MCNAPI ::ScriptPackConfiguration const& getPackConfiguration(::std::string const& packIdentifier) const;
49
50 MCNAPI_S void loadConfigs(::cereal::ReflectionCtx const& ctx);
51 // NOLINTEND
52
53public:
54 // static variables
55 // NOLINTBEGIN
56 MCNAPI static ::std::string const& sDefaultConfigurationName();
57 // NOLINTEND
58
59public:
60 // constructor thunks
61 // NOLINTBEGIN
62 MCNAPI void* $ctor(::ScriptPackConfigurationManager&&);
63
64 MCNAPI void* $ctor(::ScriptPackConfigurationManager const&);
65
66 MCNAPI void* $ctor(::std::optional<::Core::PathBuffer<::std::string>> configDirectory);
67 // NOLINTEND
68
69public:
70 // destructor thunk
71 // NOLINTBEGIN
72 MCNAPI void $dtor();
73 // NOLINTEND
74
75public:
76 // vftables
77 // NOLINTBEGIN
78 MCNAPI static void** $vftable();
79 // NOLINTEND
80};
Definition EnableNonOwnerReferences.h:7
Definition PathBuffer.h:8
MCAPI ScriptPackConfigurationManager(::ScriptPackConfigurationManager &&)
MCAPI void * $ctor(::std::optional<::Core::PathBuffer<::std::string > > configDirectory)
static MCAPI ::std::string const & sDefaultConfigurationName()
MCAPI ScriptPackConfigurationManager(::std::optional<::Core::PathBuffer<::std::string > > configDirectory)
static MCAPI void ** $vftable()
MCAPI void * $ctor(::ScriptPackConfigurationManager &&)
MCAPI ScriptPackConfigurationManager(::ScriptPackConfigurationManager const &)
MCAPI void * $ctor(::ScriptPackConfigurationManager const &)
MCAPI::ScriptPackConfiguration const & getPackConfiguration(::std::string const &packIdentifier) const
Definition ReflectionCtx.h:11
Definition ctx.h:5