LeviLamina
Loading...
Searching...
No Matches
IEduMultiplayerHeadless.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/threading/Async.h"
7#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
8#include "mc/options/EducationServicesEnvironment.h"
9#include "mc/social/EduJoinerResponse.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace Social { struct EduAddServerResponse; }
14namespace Social { struct EduDedicatedServerDetails; }
15namespace Social { struct EduFetchServersResponse; }
16namespace Social { struct EduJoinServerResponse; }
17// clang-format on
18
19namespace Social {
20
22public:
23 // IEduMultiplayerHeadless inner types define
24 enum class ServerHealth : int {
25 Unknown = -1,
26 Poor = 0,
27 Mid = 1,
28 Good = 2,
29 };
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 // vIndex: 1
35 virtual void hostServer();
36
37 // vIndex: 2
38 virtual ::Social::EduJoinerResponse tryAcceptJoinerNonce(::std::string const&);
39
40 // vIndex: 3
41 virtual ::std::string getHostToJoinerNonce(::std::string const&) const;
42
43 // vIndex: 4
44 virtual ::Bedrock::Threading::Async<void> onNextFetchJoiners();
45
46 // vIndex: 5
47 virtual ::Bedrock::Threading::Async<::Social::EduFetchServersResponse> requestBroadcastedServers();
48
49 // vIndex: 6
50 virtual ::Bedrock::Threading::Async<::Social::EduFetchServersResponse>
51 requestServerInfo(::std::vector<::std::string> const&);
52
53 // vIndex: 7
54 virtual ::Bedrock::Threading::Async<::Social::EduAddServerResponse> requestAddServer(::std::string const&);
55
56 // vIndex: 8
57 virtual ::Bedrock::Threading::Async<::Social::EduJoinServerResponse>
58 requestJoinServer(::std::string const&, ::std::string const&);
59
60 // vIndex: 9
61 virtual void saveCachedServersToDisk(::std::vector<::Social::EduDedicatedServerDetails>&);
62
63 // vIndex: 10
64 virtual ::std::vector<::Social::EduDedicatedServerDetails> loadCachedServersFromDisk();
65
66 // vIndex: 0
67 virtual ~IEduMultiplayerHeadless() /*override*/ = default;
68 // NOLINTEND
69
70public:
71 // static variables
72 // NOLINTBEGIN
73 MCNAPI static ::EducationServicesEnvironment& mCachedEnvironment();
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79
80 // NOLINTEND
81};
82
83} // namespace Social
Definition EnableNonOwnerReferences.h:7
Definition IEduMultiplayerHeadless.h:21
static MCAPI ::EducationServicesEnvironment & mCachedEnvironment()