80 enum class RuntimeVersion :
int {
88 ::ll::TypedStorage<8, 144, ::ServerScriptManagerEvents> mScriptStateEvents;
89 ::ll::TypedStorage<8, 760, ::ScriptSettings> mSettings;
90 ::ll::TypedStorage<8, 8, ::ServerLevel&> mServerLevel;
91 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ScriptPackSettingsCache>> mPackSettingsCache;
92 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::Scheduler>> mServerScheduler;
93 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::cereal::ReflectionCtx>> mCerealContext;
94 ::ll::TypedStorage<1, 1, ::RegisterDiagnosticsStatsTypes> mRegisterDiagnosticsStatsTypes;
95 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IScriptTelemetryLogger>> mTelemetryLogger;
96 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptClientDiagnosticsListener>> mClientDiagnosticsListener;
97 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::LevelEventHandlerRegistrar>> mLevelEventHandlerRegistrar;
98 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::CustomCommandRegistry>> mCustomCommandRegistry;
99 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptCustomComponentParameterCache>>
100 mCustomComponentParameterCache;
101 ::ll::TypedStorage<8, 16, ::OwnerPtr<::ScriptModuleMinecraft::ScriptBlockCustomComponentsRegistry>>
102 mBlockCustomComponentsRegistry;
103 ::ll::TypedStorage<8, 16, ::OwnerPtr<::ScriptModuleMinecraft::IScriptItemCustomComponentRegistry>>
104 mItemCustomComponentRegistry;
105 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptCustomSpawnRulesRegistry>>
106 mCustomSpawnRulesRegistry;
107 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptCustomDimensionRegistry>>
108 mCustomDimensionRegistry;
109 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptGlobalEventListeners>>
110 mGlobalEventListeners;
111 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Scripting::ScriptEngine>> mScriptEngine;
112 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptPluginManager>> mScriptPluginManager;
113 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptAsyncJobCoordinator>> mAsyncJobCoordinator;
114 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptFormPromiseTracker>> mFormPromiseTracker;
115 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptDebuggerWatchdog>> mScriptDebuggerWatchdog;
116 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptDebugger>> mScriptDebugger;
117 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptDiagnosticsPublishToFile>> mDiagnosticsPublishToFile;
118 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptDiagnostics>> mScriptDiagnostics;
119 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptTickListener>> mScriptTickListener;
120 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptContentLogEndPoint>> mScriptContentLogEndPoint;
121 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptWatchdog>> mScriptWatchdog;
122 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::AsyncJoinRegistrar>> mAsyncJoinRegistrar;
123 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Scripting::DependencyLocator>> mDependencyLocator;
124 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::Scripting::IRuntime>>> mSharedRuntimes;
128 ::std::vector<::std::function<::ScriptModuleFilters::FilterResult(
135 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptServerNetworkHandlerReference>> mServerNetworkHandler;
140 ServerScriptManager& operator=(ServerScriptManager
const&);
141 ServerScriptManager(ServerScriptManager
const&);
142 ServerScriptManager();
147 virtual ~ServerScriptManager() ;
161 MCAPI ServerScriptManager(
164 ::std::shared_ptr<::ScriptPackSettingsCache> packSettingsCache,
171 ::std::unique_ptr<::AsyncJoinRegistrar>&& asyncJoinRegistrar,
172 ::std::unique_ptr<::ScriptServerNetworkHandlerReference>&& serverNetworkHandler
177 MCAPI
void _loadPlugins(
::ServerLevel& serverLevel,
bool fromReload);
179 MCAPI
void _onPreReload(
185 MCAPI
void _runPlugins(::PluginExecutionGroup exeGroup,
::ServerInstance& serverInstance);
187 MCAPI
void _sendWorldInitializeEvent(
::ServerLevel& level)
const;
189 MCAPI
void addModuleFilter(
190 ::std::function<::ScriptModuleFilters::FilterResult(
198 MCAPI ::StackRefResult<::ScriptModuleMinecraft::ScriptBlockCustomComponentsRegistry>
199 getBlockCustomComponentRegistry()
const;
202 MCFOLD ::Scripting::ScriptEngine& getScriptEngine();
204 MCFOLD ::ScriptSettings& getScriptSettings();
208 MCAPI
void onMainThreadStartLeaveGame();
220 _sendScriptModuleShutdownEvent(
::ServerLevel& level, ::std::optional<::Scripting::WeakLifetimeScope> scope);
222 MCAPI
static void _sendScriptModuleStartupEventImpl(
229 ::std::optional<::Scripting::WeakLifetimeScope> scope
232 MCAPI
static void _sendWorldInitializeEventImpl(
247 ::std::shared_ptr<::ScriptPackSettingsCache> packSettingsCache,
254 ::std::unique_ptr<::AsyncJoinRegistrar>&& asyncJoinRegistrar,
255 ::std::unique_ptr<::ScriptServerNetworkHandlerReference>&& serverNetworkHandler