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; }
21// clang-format on
22
23class NetherNetServerLocator : public ::StubServerLocator {
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
45 // NOLINTEND
46
47 public:
48 // prevent constructor by default
49 ServerData& operator=(ServerData const&);
50 ServerData(ServerData const&);
51 ServerData();
52 };
53
54public:
55 // member variables
56 // NOLINTBEGIN
65 // NOLINTEND
66
67public:
68 // prevent constructor by default
69 NetherNetServerLocator& operator=(NetherNetServerLocator const&);
70 NetherNetServerLocator(NetherNetServerLocator const&);
71 NetherNetServerLocator();
72
73public:
74 // virtual functions
75 // NOLINTBEGIN
76 virtual ~NetherNetServerLocator() /*override*/;
77
78 virtual void startAnnouncingServer(
79 ::std::string const& playerName,
80 ::std::string const& worldName,
81 ::GameType gameType,
82 int numPlayers,
83 int maxNumPlayers,
84 bool isJoinableThroughServerScreen,
85 bool isEditorWorld,
86 bool isHardcore,
88 ) /*override*/;
89
90 virtual void stopAnnouncingServer() /*override*/;
91
92 virtual void startServerDiscovery(::PortPair ports) /*override*/;
93
94 virtual void stopServerDiscovery() /*override*/;
95
96 virtual ::std::vector<::PingedCompatibleServer> getServerList() const /*override*/;
97
98 virtual void clearServerList() /*override*/;
99
100 virtual void update() /*override*/;
101 // NOLINTEND
102
103public:
104 // member functions
105 // NOLINTBEGIN
106 MCNAPI NetherNetServerLocator(
107 ::Bedrock::NotNullNonOwnerPtr<::NetherNetConnector>&& connector,
108 ::Bedrock::NonOwnerPointer<::AppPlatform> const& appPlatform,
109 ::Bedrock::NonOwnerPointer<::SignalingService> signalingService
110 );
111
113
114 MCNAPI void _onDiscoveryResponse(::NetherNet::NetworkID const& networkID, ::gsl::span<char const> responseData);
115
116 MCNAPI void _setDiscoveryRequestCallback(bool enable);
117
118 MCNAPI void _setDiscoveryResponseCallback(bool enable);
119 // NOLINTEND
120
121public:
122 // constructor thunks
123 // NOLINTBEGIN
124 MCNAPI void* $ctor(
125 ::Bedrock::NotNullNonOwnerPtr<::NetherNetConnector>&& connector,
126 ::Bedrock::NonOwnerPointer<::AppPlatform> const& appPlatform,
127 ::Bedrock::NonOwnerPointer<::SignalingService> signalingService
128 );
129 // NOLINTEND
130
131public:
132 // destructor thunk
133 // NOLINTBEGIN
134 MCNAPI void $dtor();
135 // NOLINTEND
136
137public:
138 // virtual function thunks
139 // NOLINTBEGIN
141 ::std::string const& playerName,
142 ::std::string const& worldName,
143 ::GameType gameType,
144 int numPlayers,
145 int maxNumPlayers,
146 bool isJoinableThroughServerScreen,
147 bool isEditorWorld,
148 bool isHardcore,
150 );
151
153
154 MCNAPI void $startServerDiscovery(::PortPair ports);
155
156 MCNAPI void $stopServerDiscovery();
157
158 MCNAPI ::std::vector<::PingedCompatibleServer> $getServerList() const;
159
160 MCNAPI void $clearServerList();
161
162 MCNAPI void $update();
163
164
165 // NOLINTEND
166};
Definition AppPlatform.h:89
Definition Mutex.h:10
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 $startAnnouncingServer(::std::string const &playerName, ::std::string const &worldName, ::GameType gameType, int numPlayers, int maxNumPlayers, bool isJoinableThroughServerScreen, bool isEditorWorld, bool isHardcore, ::ServerSupportedAuthenticationTypes supportedAuth)
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:18
STL namespace.
Definition NetherNetConnector.h:28
Definition NetherNetServerLocator.h:31
Definition NetworkID.h:17
Definition PingedCompatibleServer.h:5
Definition PortPair.h:5
Definition ServerSupportedAuthenticationTypes.h:5
Definition Alias.h:14