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;
15// clang-format on
16
18public:
19 // virtual functions
20 // NOLINTBEGIN
21 virtual ~IGameServerStartup() = default;
22
23 virtual bool canStartLocalServer() const = 0;
24
25 virtual ::Bedrock::Threading::Async<void> startLocalServerAsync(
26 ::std::string const&,
27 ::std::string const&,
28 ::ContentIdentity const&,
29 ::LevelSettings const&,
30 ::StartIntent
31 ) = 0;
32
33 virtual bool isHostingLocalDedicatedServer() const = 0;
34
35 virtual ::TaskGroup& _getServerInitTaskGroup() = 0;
36 // NOLINTEND
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCNAPI ::Bedrock::Threading::Async<void> startLocalServerAsyncFromSummary(::LevelSummary const& levelSummary);
42
44 ::std::string const& levelId,
45 ::std::string const& levelName,
46 ::ContentIdentity const& premiumTemplateContentIdentity,
47 ::LevelSettings const& settings,
48 ::StartIntent startIntent
49 );
50 // NOLINTEND
51
52public:
53 // virtual function thunks
54 // NOLINTBEGIN
55
56 // NOLINTEND
57};
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 TaskGroup.h:53
Definition LevelSummary.h:27