LeviLamina
Loading...
Searching...
No Matches
NetherNetServerLocator.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/StubServerLocator.h"
8#include "mc/platform/Result.h"
9#include "mc/platform/threading/UniqueLock.h"
10#include "mc/world/level/GameType.h"
11
12// auto generated forward declare list
13// clang-format off
14class AppPlatform;
15class BinaryStream;
19struct PortPair;
20namespace Bedrock::Threading { class Mutex; }
21// clang-format on
22
24public:
25 // NetherNetServerLocator inner types declare
26 // clang-format off
27 struct ServerData;
28 // clang-format on
29
30 // NetherNetServerLocator inner types define
31 struct ServerData {
32 public:
33 // member variables
34 // NOLINTBEGIN
43 // NOLINTEND
44
45 public:
46 // prevent constructor by default
47 ServerData& operator=(ServerData const&);
48 ServerData(ServerData const&);
49 ServerData();
50
51 public:
52 // member functions
53 // NOLINTBEGIN
54 MCAPI ::Bedrock::Result<void> read(::ReadOnlyBinaryStream& stream);
55
56 MCAPI void write(::BinaryStream& stream) const;
57
58 MCAPI ~ServerData();
59 // NOLINTEND
60
61 public:
62 // destructor thunk
63 // NOLINTBEGIN
64 MCFOLD void $dtor();
65 // NOLINTEND
66 };
67
68public:
69 // member variables
70 // NOLINTBEGIN
77 // NOLINTEND
78
79public:
80 // prevent constructor by default
84
85public:
86 // virtual functions
87 // NOLINTBEGIN
88 // vIndex: 0
89 virtual ~NetherNetServerLocator() /*override*/;
90
91 // vIndex: 3
92 virtual void startAnnouncingServer(
93 ::std::string const& playerName,
94 ::std::string const& worldName,
96 ::GameType gameType,
97 int numPlayers,
98 int maxNumPlayers,
99 bool isJoinableThroughServerScreen,
100 bool isEditorWorld,
101 bool isHardcore
102 ) /*override*/;
103
104 // vIndex: 4
105 virtual void stopAnnouncingServer(::Bedrock::NonOwnerPointer<::AppPlatform> appPlatform) /*override*/;
106
107 // vIndex: 5
108 virtual void startServerDiscovery(::PortPair ports) /*override*/;
109
110 // vIndex: 6
111 virtual void stopServerDiscovery() /*override*/;
112
113 // vIndex: 9
114 virtual ::std::vector<::PingedCompatibleServer> getServerList() const /*override*/;
115
116 // vIndex: 10
117 virtual void clearServerList() /*override*/;
118
119 // vIndex: 11
120 virtual void update() /*override*/;
121 // NOLINTEND
122
123public:
124 // member functions
125 // NOLINTBEGIN
126 MCAPI void _cacheDiscoveryResponseData(::NetherNetServerLocator::ServerData const& serverData);
127
128 MCAPI void _onDiscoveryResponse(uint64 networkID, ::gsl::span<char const> responseData);
129
130 MCAPI void _setIsAnnouncing(bool isAnnouncing);
131
132 MCAPI void setNetherNetConnector(::Bedrock::NonOwnerPointer<::NetherNetConnector>&& connector);
133 // NOLINTEND
134
135public:
136 // static functions
137 // NOLINTBEGIN
138 MCAPI static ::PingedCompatibleServer
139 _transformFrom(uint64 networkID, ::NetherNetServerLocator::ServerData&& serverData);
140 // NOLINTEND
141
142public:
143 // destructor thunk
144 // NOLINTBEGIN
145 MCAPI void $dtor();
146 // NOLINTEND
147
148public:
149 // virtual function thunks
150 // NOLINTBEGIN
151 MCAPI void $startAnnouncingServer(
152 ::std::string const& playerName,
153 ::std::string const& worldName,
154 ::Bedrock::NonOwnerPointer<::AppPlatform> appPlatform,
155 ::GameType gameType,
156 int numPlayers,
157 int maxNumPlayers,
158 bool isJoinableThroughServerScreen,
159 bool isEditorWorld,
160 bool isHardcore
161 );
162
163 MCAPI void $stopAnnouncingServer(::Bedrock::NonOwnerPointer<::AppPlatform> appPlatform);
164
165 MCAPI void $startServerDiscovery(::PortPair ports);
166
167 MCAPI void $stopServerDiscovery();
168
169 MCAPI ::std::vector<::PingedCompatibleServer> $getServerList() const;
170
171 MCAPI void $clearServerList();
172
173 MCAPI void $update();
174 // NOLINTEND
175
176public:
177 // vftables
178 // NOLINTBEGIN
179 MCAPI static void** $vftable();
180 // NOLINTEND
181};
Definition AppPlatform.h:49
Definition NonOwnerPointer.h:9
Definition BinaryStream.h:10
Definition NetherNetServerLocator.h:23
Definition ReadOnlyBinaryStream.h:8
Definition StubServerLocator.h:19
STL namespace.
Definition NetherNetConnector.h:23
Definition NetherNetServerLocator.h:31
Definition PingedCompatibleServer.h:5
Definition PortPair.h:5
Definition Alias.h:14