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/threading/UniqueLock.h"
9#include "mc/world/level/GameType.h"
10
11// auto generated forward declare list
12// clang-format off
13class AppPlatform;
17struct PortPair;
19namespace Bedrock::Threading { class Mutex; }
20namespace NetherNet { struct NetworkID; }
21namespace Social { struct Nonce; }
22// clang-format on
23
24class NetherNetServerLocator : public ::StubServerLocator {
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
47 // NOLINTEND
48
49 public:
50 // prevent constructor by default
51 ServerData& operator=(ServerData const&);
52 ServerData(ServerData const&);
53 ServerData();
54 };
55
56public:
57 // member variables
58 // NOLINTBEGIN
67 // NOLINTEND
68
69public:
70 // prevent constructor by default
71 NetherNetServerLocator& operator=(NetherNetServerLocator const&);
72 NetherNetServerLocator(NetherNetServerLocator const&);
73 NetherNetServerLocator();
74
75public:
76 // virtual functions
77 // NOLINTBEGIN
78 virtual ~NetherNetServerLocator() /*override*/ = default;
79
80 virtual void startAnnouncingServer(
81 ::std::string const& playerName,
82 ::std::string const& worldName,
83 ::GameType gameType,
84 int numPlayers,
85 int maxNumPlayers,
86 bool isJoinableThroughServerScreen,
87 bool isEditorWorld,
88 bool isHardcore,
90 ::Social::Nonce const& nonce
91 ) /*override*/;
92
93 virtual void stopAnnouncingServer() /*override*/;
94
95 virtual void startServerDiscovery(::PortPair ports) /*override*/;
96
97 virtual void stopServerDiscovery() /*override*/;
98
99 virtual ::std::vector<::PingedCompatibleServer> getServerList() const /*override*/;
100
101 virtual void clearServerList() /*override*/;
102
103 virtual void update() /*override*/;
104 // NOLINTEND
105
106public:
107 // member functions
108 // NOLINTBEGIN
109 MCNAPI NetherNetServerLocator(
110 ::Bedrock::NotNullNonOwnerPtr<::NetherNetConnector>&& connector,
111 ::Bedrock::NonOwnerPointer<::AppPlatform> const& appPlatform,
112 ::Bedrock::NonOwnerPointer<::SignalingService> signalingService
113 );
114
116
117 MCNAPI void _onDiscoveryResponse(::NetherNet::NetworkID const& networkID, ::gsl::span<char const> responseData);
118
119 MCNAPI void _setDiscoveryRequestCallback(bool enable);
120
121 MCNAPI void _setDiscoveryResponseCallback(bool enable);
122 // NOLINTEND
123
124public:
125 // constructor thunks
126 // NOLINTBEGIN
127 MCNAPI void* $ctor(
128 ::Bedrock::NotNullNonOwnerPtr<::NetherNetConnector>&& connector,
129 ::Bedrock::NonOwnerPointer<::AppPlatform> const& appPlatform,
130 ::Bedrock::NonOwnerPointer<::SignalingService> signalingService
131 );
132 // NOLINTEND
133
134public:
135 // virtual function thunks
136 // NOLINTBEGIN
138 ::std::string const& playerName,
139 ::std::string const& worldName,
140 ::GameType gameType,
141 int numPlayers,
142 int maxNumPlayers,
143 bool isJoinableThroughServerScreen,
144 bool isEditorWorld,
145 bool isHardcore,
147 ::Social::Nonce const& nonce
148 );
149
151
152 MCNAPI void $startServerDiscovery(::PortPair ports);
153
154 MCNAPI void $stopServerDiscovery();
155
156 MCNAPI ::std::vector<::PingedCompatibleServer> $getServerList() const;
157
158 MCNAPI void $clearServerList();
159
160 MCNAPI void $update();
161
162
163 // NOLINTEND
164};
Definition AppPlatform.h:91
Definition Mutex.h:10
MCAPI void $startAnnouncingServer(::std::string const &playerName, ::std::string const &worldName, ::GameType gameType, int numPlayers, int maxNumPlayers, bool isJoinableThroughServerScreen, bool isEditorWorld, bool isHardcore, ::ServerSupportedAuthenticationTypes supportedAuth, ::Social::Nonce const &nonce)
MCAPI void $stopAnnouncingServer()
MCAPI void _onDiscoveryResponse(::NetherNet::NetworkID const &networkID, ::gsl::span< char const > responseData)
MCAPI void $startServerDiscovery(::PortPair ports)
MCAPI void $clearServerList()
MCAPI void _setDiscoveryRequestCallback(bool enable)
MCAPI void _cacheDiscoveryResponseData()
MCAPI void $stopServerDiscovery()
MCAPI ::std::vector<::PingedCompatibleServer > $getServerList() const
MCAPI void * $ctor(::Bedrock::NotNullNonOwnerPtr<::NetherNetConnector > &&connector, ::Bedrock::NonOwnerPointer<::AppPlatform > const &appPlatform, ::Bedrock::NonOwnerPointer<::SignalingService > signalingService)
MCAPI void _setDiscoveryResponseCallback(bool enable)
Definition SignalingService.h:35
Definition StubServerLocator.h:19
STL namespace.
Definition NetherNetConnector.h:29
Definition NetherNetServerLocator.h:32
Definition NetworkID.h:17
Definition PingedCompatibleServer.h:5
Definition PortPair.h:5
Definition ServerSupportedAuthenticationTypes.h:5
Definition Nonce.h:10
Definition Alias.h:14