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;
20struct PortPair;
21namespace Bedrock::Threading { class Mutex; }
22namespace NetherNet { struct NetworkID; }
23// clang-format on
24
26public:
27 // NetherNetServerLocator inner types declare
28 // clang-format off
29 struct ServerData;
30 // clang-format on
31
32 // NetherNetServerLocator inner types define
33 struct ServerData {
34 public:
35 // member variables
36 // NOLINTBEGIN
46 // NOLINTEND
47
48 public:
49 // prevent constructor by default
50 ServerData& operator=(ServerData const&);
51 ServerData(ServerData const&);
52 ServerData();
53
54 public:
55 // member functions
56 // NOLINTBEGIN
57 MCNAPI ::Bedrock::Result<void> read(::ReadOnlyBinaryStream& stream);
58
59 MCNAPI void write(::BinaryStream& stream) const;
60
61 MCNAPI ~ServerData();
62 // NOLINTEND
63
64 public:
65 // destructor thunk
66 // NOLINTBEGIN
67 MCNAPI void $dtor();
68 // NOLINTEND
69 };
70
71public:
72 // member variables
73 // NOLINTBEGIN
82 // NOLINTEND
83
84public:
85 // prevent constructor by default
89
90public:
91 // virtual functions
92 // NOLINTBEGIN
93 // vIndex: 0
94 virtual ~NetherNetServerLocator() /*override*/;
95
96 // vIndex: 3
97 virtual void startAnnouncingServer(
98 ::std::string const& playerName,
99 ::std::string const& worldName,
101 ::GameType gameType,
102 int numPlayers,
103 int maxNumPlayers,
104 bool isJoinableThroughServerScreen,
105 bool isEditorWorld,
106 bool isHardcore
107 ) /*override*/;
108
109 // vIndex: 4
110 virtual void stopAnnouncingServer(::Bedrock::NonOwnerPointer<::AppPlatform> appPlatform) /*override*/;
111
112 // vIndex: 5
113 virtual void startServerDiscovery(::PortPair ports) /*override*/;
114
115 // vIndex: 6
116 virtual void stopServerDiscovery() /*override*/;
117
118 // vIndex: 9
119 virtual ::std::vector<::PingedCompatibleServer> getServerList() const /*override*/;
120
121 // vIndex: 10
122 virtual void clearServerList() /*override*/;
123
124 // vIndex: 11
125 virtual void update() /*override*/;
126 // NOLINTEND
127
128public:
129 // member functions
130 // NOLINTBEGIN
132 ::Bedrock::NotNullNonOwnerPtr<::NetherNetConnector>&& connector,
133 ::Bedrock::NonOwnerPointer<::SignalingService> signalingService
134 );
135
137
138 MCNAPI void _onDiscoveryResponse(::NetherNet::NetworkID const& networkID, ::gsl::span<char const> responseData);
139
140 MCNAPI void _setDiscoveryRequestCallback(bool enable);
141
142 MCNAPI void _setDiscoveryResponseCallback(bool enable);
143
144 MCNAPI void _setIsAnnouncing(bool isAnnouncing);
145
146 MCNAPI void _setIsDiscovering(bool isDiscovering);
147 // NOLINTEND
148
149public:
150 // static functions
151 // NOLINTBEGIN
152 MCNAPI static ::PingedCompatibleServer
153 _transformFrom(::NetherNet::NetworkID const& networkID, ::NetherNetServerLocator::ServerData&& serverData);
154 // NOLINTEND
155
156public:
157 // constructor thunks
158 // NOLINTBEGIN
159 MCNAPI void* $ctor(
160 ::Bedrock::NotNullNonOwnerPtr<::NetherNetConnector>&& connector,
161 ::Bedrock::NonOwnerPointer<::SignalingService> signalingService
162 );
163 // NOLINTEND
164
165public:
166 // destructor thunk
167 // NOLINTBEGIN
168 MCNAPI void $dtor();
169 // NOLINTEND
170
171public:
172 // virtual function thunks
173 // NOLINTBEGIN
175 ::std::string const& playerName,
176 ::std::string const& worldName,
177 ::Bedrock::NonOwnerPointer<::AppPlatform> appPlatform,
178 ::GameType gameType,
179 int numPlayers,
180 int maxNumPlayers,
181 bool isJoinableThroughServerScreen,
182 bool isEditorWorld,
183 bool isHardcore
184 );
185
186 MCNAPI void $stopAnnouncingServer(::Bedrock::NonOwnerPointer<::AppPlatform> appPlatform);
187
188 MCNAPI void $startServerDiscovery(::PortPair ports);
189
190 MCNAPI void $stopServerDiscovery();
191
192 MCNAPI ::std::vector<::PingedCompatibleServer> $getServerList() const;
193
194 MCNAPI void $clearServerList();
195
196 MCNAPI void $update();
197 // NOLINTEND
198
199public:
200 // vftables
201 // NOLINTBEGIN
202 MCNAPI static void** $vftable();
203 // NOLINTEND
204};
Definition AppPlatform.h:50
Definition NonOwnerPointer.h:9
Definition BinaryStream.h:10
Definition NetherNetServerLocator.h:25
MCAPI void $startAnnouncingServer(::std::string const &playerName, ::std::string const &worldName, ::Bedrock::NonOwnerPointer<::AppPlatform > appPlatform, ::GameType gameType, int numPlayers, int maxNumPlayers, bool isJoinableThroughServerScreen, bool isEditorWorld, bool isHardcore)
MCAPI void _onDiscoveryResponse(::NetherNet::NetworkID const &networkID, ::gsl::span< char const > responseData)
MCAPI void $startServerDiscovery(::PortPair ports)
MCAPI void _setIsDiscovering(bool isDiscovering)
MCAPI void _setIsAnnouncing(bool isAnnouncing)
static MCAPI void ** $vftable()
MCAPI void $clearServerList()
MCAPI void _setDiscoveryRequestCallback(bool enable)
static MCAPI ::PingedCompatibleServer _transformFrom(::NetherNet::NetworkID const &networkID, ::NetherNetServerLocator::ServerData &&serverData)
MCAPI void _cacheDiscoveryResponseData()
MCAPI void $stopServerDiscovery()
MCAPI ::std::vector<::PingedCompatibleServer > $getServerList() const
MCAPI void _setDiscoveryResponseCallback(bool enable)
MCAPI void $stopAnnouncingServer(::Bedrock::NonOwnerPointer<::AppPlatform > appPlatform)
Definition ReadOnlyBinaryStream.h:8
Definition SignalingService.h:36
Definition StubServerLocator.h:19
MCAPI void * $ctor()
STL namespace.
Definition NetherNetConnector.h:26
Definition NetherNetServerLocator.h:33
MCAPI void write(::BinaryStream &stream) const
MCAPI ::Bedrock::Result< void > read(::ReadOnlyBinaryStream &stream)
Definition PingedCompatibleServer.h:5
Definition PortPair.h:5
Definition Alias.h:14