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