Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
IGameServerStartup.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/game/StartIntent.h"
7#include "mc/deps/core/threading/Async.h"
8
9// auto generated forward declare list
10// clang-format off
11class ContentIdentity;
12class LevelSettings;
13class TaskGroup;
14struct LevelSummary;
15namespace ServerInitialization { class IServerInitializer; }
16// clang-format on
17
19public:
20 // virtual functions
21 // NOLINTBEGIN
22 virtual ~IGameServerStartup() = default;
23
24 virtual bool canStartLocalServer() const = 0;
25
26 virtual ::Bedrock::Threading::Async<void> _startLocalServerAsync(
27 ::std::string const& levelId,
28 ::std::string const& levelName,
29 ::ContentIdentity const& premiumTemplateContentIdentity,
30 ::LevelSettings const& settings,
31 ::std::unique_ptr<::ServerInitialization::IServerInitializer> initializer,
32 ::StartIntent startIntent
33 ) = 0;
34
35 virtual bool isHostingLocalDedicatedServer() const = 0;
36
37 virtual ::TaskGroup& _getServerInitTaskGroup() = 0;
38 // NOLINTEND
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCNAPI ::Bedrock::Threading::Async<void> startLocalServerAsyncFromSummary(::LevelSummary const& levelSummary);
44
46 ::std::string const& levelId,
47 ::std::string const& levelName,
48 ::ContentIdentity const& premiumTemplateContentIdentity,
49 ::LevelSettings const& settings,
50 ::StartIntent startIntent
51 );
52 // NOLINTEND
53};
Definition ContentIdentity.h:8
Definition IGameServerStartup.h:5
MCAPI bool startLocalServerBlocking(::std::string const &levelId, ::std::string const &levelName, ::ContentIdentity const &premiumTemplateContentIdentity, ::LevelSettings const &settings, ::StartIntent startIntent)
MCAPI ::Bedrock::Threading::Async< void > startLocalServerAsyncFromSummary(::LevelSummary const &levelSummary)
Definition LevelSettings.h:39
Definition IServerInitializer.h:21
Definition TaskGroup.h:85
Definition LevelSummary.h:30