LeviLamina
Loading...
Searching...
No Matches
StubServerLocator.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/network/ServerConnectivityTestResult.h"
8#include "mc/network/ServerLocator.h"
9#include "mc/world/level/GameType.h"
10
11// auto generated forward declare list
12// clang-format off
13class AppPlatform;
16struct PortPair;
17// clang-format on
18
20public:
21 // virtual functions
22 // NOLINTBEGIN
23 // vIndex: 0
24 virtual ~StubServerLocator() /*override*/ = default;
25
26 // vIndex: 3
27 virtual void startAnnouncingServer(
28 ::std::string const& playerName,
29 ::std::string const& worldName,
31 ::GameType gameType,
32 int numPlayers,
33 int maxNumPlayers,
34 bool isJoinableThroughServerScreen,
35 bool isEditorWorld,
36 bool isHardcore
37 ) /*override*/;
38
39 // vIndex: 4
40 virtual void stopAnnouncingServer(::Bedrock::NonOwnerPointer<::AppPlatform> appPlatform) /*override*/;
41
42 // vIndex: 5
43 virtual void startServerDiscovery(::PortPair ports) /*override*/;
44
45 // vIndex: 8
46 virtual void addCustomServer(::AsynchronousIPResolver const& futureIP, int port) /*override*/;
47
48 // vIndex: 7
49 virtual void addCustomServer(::std::string const& address, int port) /*override*/;
50
51 // vIndex: 6
52 virtual void stopServerDiscovery() /*override*/;
53
54 // vIndex: 9
55 virtual ::std::vector<::PingedCompatibleServer> getServerList() const /*override*/;
56
57 // vIndex: 10
58 virtual void clearServerList() /*override*/;
59
60 // vIndex: 11
61 virtual void update() /*override*/;
62
63 // vIndex: 12
64 virtual float getPingTimeForGUID(::std::string const& guid) /*override*/;
65
66 // vIndex: 13
67 virtual void checkCanConnectToCustomServerAsync(
68 ::std::string hostIpAddress,
69 int port,
70 ::std::function<void(::ServerConnectivityTestResult)> callback
71 ) /*override*/;
72 // NOLINTEND
73
74public:
75 // member functions
76 // NOLINTBEGIN
77 MCAPI StubServerLocator();
78 // NOLINTEND
79
80public:
81 // constructor thunks
82 // NOLINTBEGIN
83 MCAPI void* $ctor();
84 // NOLINTEND
85
86public:
87 // destructor thunk
88 // NOLINTBEGIN
89
90 // NOLINTEND
91
92public:
93 // virtual function thunks
94 // NOLINTBEGIN
95 MCAPI void $startAnnouncingServer(
96 ::std::string const& playerName,
97 ::std::string const& worldName,
99 ::GameType gameType,
100 int numPlayers,
101 int maxNumPlayers,
102 bool isJoinableThroughServerScreen,
103 bool isEditorWorld,
104 bool isHardcore
105 );
106
107 MCAPI void $stopAnnouncingServer(::Bedrock::NonOwnerPointer<::AppPlatform> appPlatform);
108
109 MCFOLD void $startServerDiscovery(::PortPair ports);
110
111 MCFOLD void $addCustomServer(::AsynchronousIPResolver const& futureIP, int port);
112
113 MCFOLD void $addCustomServer(::std::string const& address, int port);
114
115 MCFOLD void $stopServerDiscovery();
116
117 MCFOLD ::std::vector<::PingedCompatibleServer> $getServerList() const;
118
119 MCFOLD void $clearServerList();
120
121 MCFOLD void $update();
122
123 MCFOLD float $getPingTimeForGUID(::std::string const& guid);
124
125 MCAPI void $checkCanConnectToCustomServerAsync(
126 ::std::string hostIpAddress,
127 int port,
128 ::std::function<void(::ServerConnectivityTestResult)> callback
129 );
130 // NOLINTEND
131
132public:
133 // vftables
134 // NOLINTBEGIN
135 MCAPI static void** $vftable();
136 // NOLINTEND
137};
Definition AppPlatform.h:49
Definition AsynchronousIPResolver.h:5
Definition NonOwnerPointer.h:9
Definition ServerLocator.h:19
Definition StubServerLocator.h:19
Definition PingedCompatibleServer.h:5
Definition PortPair.h:5