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