55 enum class ServerExitCode :
int {
59 MissingDependency = 3,
61 DocumentationGenerationError = 5,
62 ScriptWatchdogTermination = 6,
68 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::Minecraft>> mMinecraft;
69 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::Core::FileSystem>> mFileSystem;
70 ::ll::TypedStorage<8, 16, ::Bedrock::UniqueOwnerPointer<::ServerInstanceEventCoordinator>>
71 mServerInstanceEventCoordinator;
72 ::ll::TypedStorage<1, 1, ::std::atomic<bool>> mWantsToQuit;
73 ::ll::TypedStorage<4, 4, ::std::atomic<::DedicatedServer::ServerExitCode>> mResult;
74 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ConsoleInputReader>> mConsoleInputReader;
75 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IGameModuleShared>> mGameModule;
76 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::AppConfigs>> mAppConfig;
77 ::ll::TypedStorage<8, 8, ::ServiceRegistrationToken<::AppConfigs>> mAppConfigServiceRegistrationToken;
78 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::Bedrock::Http::DispatcherProcess>> mHttpDispatcher;
79 ::ll::TypedStorage<8, 8, ::ServiceRegistrationToken<::Bedrock::Http::DispatcherInterface>>
80 mHttpDispatcherServiceRegistrationToken;
81 ::ll::TypedStorage<8, 32, ::std::string> mSessionID;
82 ::ll::TypedStorage<8, 64, ::Bedrock::ScopeExit> mOnDestructioncloseAndResetAllLogs;
83 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::LevelDbEnv>> mLevelDbEnv;
84 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CodeBuilder::IManager>> mCodeBuilder;
85 ::ll::TypedStorage<8, 8, ::ServiceRegistrationToken<::CodeBuilder::IManager>> mCodeBuilderRegistrationToken;
86 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ImguiProfiler>> mImguiProfiler;
87 ::ll::TypedStorage<8, 8, ::ServiceRegistrationToken<::ImguiProfiler>> mImguiProfilerRegistrationToken;
88 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ProfilingConfigManager>> mProfilingConfigManager;
89 ::ll::TypedStorage<8, 8, ::ServiceRegistrationToken<::ProfilingConfigManager>>
90 mProfilingConfigManagerServiceRegistrationToken;
91 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::FileArchiver>> mFileArchiver;
92 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::EditorBootstrapper>> mEditorBootstrapper;
93 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CDNConfig>> mCDNConfig;
94 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ServerTextSettings>> mServerTextSettings;
95 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::SignalingService>> mSignalingService;
96 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::SignalingServiceSignInJob>> mSignalingServiceSignInJob;
97 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::Bedrock::Services::DiscoveryHelper>> mDiscoveryServiceHelper;
98 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::Bedrock::Services::AuthHelper>> mAuthServiceHelper;
99 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IEDUSystems>> mEduSystems;
100 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptDedicatedServerUtils>> mScriptDedicatedServerUtils;
106 virtual ~DedicatedServer() ;
108 virtual bool stop() ;
110 virtual ::Bedrock::NotNullNonOwnerPtr<::FileArchiver> getFileArchiver()
const ;
112 virtual ::Bedrock::NotNullNonOwnerPtr<::Minecraft> getPrimaryMinecraft() ;
114 virtual ::Bedrock::NotNullNonOwnerPtr<::Automation::AutomationClient> getAutomationClient()
const ;
116 virtual bool isEduMode()
const ;
118 virtual bool isDedicatedServer()
const ;
120 virtual void onNetworkMaxPlayersChanged(uint) ;
122 virtual ::IGameModuleShared& getGameModuleShared() ;
124 virtual void requestServerShutdown() ;
126 virtual bool requestInGamePause(::SubClientId
const&,
bool) ;
132 MCAPI DedicatedServer();
134 MCAPI ::TextProcessorInitParams createTextProcessorInitParams(
::PropertiesSettings const& properties)
const;
136 MCAPI
void initializeAppConfigs();
138 MCAPI
void initializeCodeBuilder();
142 MCAPI
void initializeImguiProfiler();
146 MCAPI ::brstd::future<bool>
149 MCAPI
void initializeServices(
150 ::Bedrock::NotNullNonOwnerPtr<::IMinecraftEventing> minecraftEventing,
154 MCAPI ::DedicatedServer::ServerExitCode runDedicatedServerLoop(
159 ::std::unique_ptr<::PermissionsFile>& permissionsFile,
160 ::std::optional<::PacketGroupDefinition::PacketGroupBuilder> packetGroupBuilder,
165 MCAPI
void shutdownServices();
167 MCAPI ::DedicatedServer::ServerExitCode
188 MCAPI ::Bedrock::NotNullNonOwnerPtr<::FileArchiver> $getFileArchiver()
const;
190 MCAPI ::Bedrock::NotNullNonOwnerPtr<::Minecraft> $getPrimaryMinecraft();
192 MCAPI ::Bedrock::NotNullNonOwnerPtr<::Automation::AutomationClient> $getAutomationClient()
const;
194 MCAPI
bool $isEduMode()
const;
196 MCFOLD
bool $isDedicatedServer()
const;
198 MCFOLD
void $onNetworkMaxPlayersChanged(uint);
200 MCFOLD ::IGameModuleShared& $getGameModuleShared();
202 MCAPI
void $requestServerShutdown();
204 MCFOLD
bool $requestInGamePause(::SubClientId
const&,
bool);