51 enum class StartResult :
int {
55 MissingDependency = 3,
62 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::Minecraft>> mMinecraft;
63 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::Core::FileSystem>> mFileSystem;
64 ::ll::TypedStorage<8, 16, ::Bedrock::UniqueOwnerPointer<::ServerInstanceEventCoordinator>>
65 mServerInstanceEventCoordinator;
66 ::ll::TypedStorage<1, 1, ::std::atomic<bool>> mWantsToQuit;
67 ::ll::TypedStorage<4, 4, ::std::atomic<::DedicatedServer::StartResult>> mResult;
68 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ConsoleInputReader>> mConsoleInputReader;
69 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IGameModuleShared>> mGameModule;
70 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::AppConfigs>> mAppConfig;
71 ::ll::TypedStorage<8, 8, ::ServiceRegistrationToken<::AppConfigs>> mAppConfigServiceRegistrationToken;
72 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::Bedrock::Http::DispatcherProcess>> mHttpDispatcher;
73 ::ll::TypedStorage<8, 8, ::ServiceRegistrationToken<::Bedrock::Http::DispatcherInterface>>
74 mHttpDispatcherServiceRegistrationToken;
75 ::ll::TypedStorage<8, 32, ::std::string> mSessionID;
76 ::ll::TypedStorage<8, 64, ::Bedrock::ScopeExit> mOnDestructioncloseAndResetAllLogs;
77 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::LevelDbEnv>> mLevelDbEnv;
78 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CodeBuilder::IManager>> mCodeBuilder;
79 ::ll::TypedStorage<8, 8, ::ServiceRegistrationToken<::CodeBuilder::IManager>> mCodeBuilderRegistrationToken;
80 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ImguiProfiler>> mImguiProfiler;
81 ::ll::TypedStorage<8, 8, ::ServiceRegistrationToken<::ImguiProfiler>> mImguiProfilerRegistrationToken;
82 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::FileArchiver>> mFileArchiver;
83 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::EditorBootstrapper>> mEditorBootstrapper;
84 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CDNConfig>> mCDNConfig;
85 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ServerTextSettings>> mServerTextSettings;
86 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::SignalingService>> mSignalingService;
87 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::SignalingServiceSignInJob>> mSignalingServiceSignInJob;
88 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::Bedrock::Services::DiscoveryHelper>> mDiscoveryServiceHelper;
89 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::Bedrock::Services::AuthHelper>> mAuthServiceHelper;
90 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IEDUSystems>> mEduSystems;
100 virtual ::Bedrock::NotNullNonOwnerPtr<::FileArchiver> getFileArchiver()
const ;
102 virtual ::Bedrock::NotNullNonOwnerPtr<::Minecraft> getPrimaryMinecraft() ;
104 virtual ::Bedrock::NotNullNonOwnerPtr<::Automation::AutomationClient> getAutomationClient()
const ;
106 virtual bool isEduMode()
const ;
108 virtual bool isDedicatedServer()
const ;
110 virtual void onNetworkMaxPlayersChanged(uint newMaxPlayerCount) ;
112 virtual ::IGameModuleShared& getGameModuleShared() ;
114 virtual void requestServerShutdown(::std::string
const&) ;
116 virtual bool requestInGamePause(::SubClientId
const&,
bool) ;
124 MCAPI
void initializeAppConfigs();
126 MCAPI
void initializeCodeBuilder();
130 MCAPI
void initializeImguiProfiler();
134 MCAPI ::std::future<bool> initializeMultiplayerKeys(
135 ::Minecraft& minecraft,
136 ::Bedrock::NonOwnerPointer<::Bedrock::Services::DiscoveryHelper> discovery,
140 MCAPI
void initializeServices(
141 ::Bedrock::NotNullNonOwnerPtr<::IMinecraftEventing> minecraftEventing,
145 MCAPI ::DedicatedServer::StartResult runDedicatedServerLoop(
146 ::Core::FilePathManager& filePathManager,
148 ::LevelSettings& settings,
149 ::AllowListFile& userAllowList,
150 ::std::unique_ptr<::PermissionsFile>& permissionsFile,
151 ::std::optional<::PacketGroupDefinition::PacketGroupBuilder> packetGroupBuilder,
152 ::Bedrock::ActivationArguments
const& args,
156 MCAPI
void shutdownServices();
158 MCAPI ::DedicatedServer::StartResult
159 start(::std::string
const& sessionID, ::Bedrock::ActivationArguments
const& args);
179 MCAPI ::Bedrock::NotNullNonOwnerPtr<::FileArchiver> $getFileArchiver()
const;
181 MCAPI ::Bedrock::NotNullNonOwnerPtr<::Minecraft> $getPrimaryMinecraft();
183 MCAPI ::Bedrock::NotNullNonOwnerPtr<::Automation::AutomationClient> $getAutomationClient()
const;
185 MCAPI
bool $isEduMode()
const;
187 MCFOLD
bool $isDedicatedServer()
const;
189 MCFOLD
void $onNetworkMaxPlayersChanged(uint newMaxPlayerCount);
191 MCFOLD ::IGameModuleShared& $getGameModuleShared();
193 MCAPI
void $requestServerShutdown(::std::string
const&);
195 MCFOLD
bool $requestInGamePause(::SubClientId
const&,
bool);