LeviLamina
Loading...
Searching...
No Matches
ServerLocatorComposite.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/ServerConnectivityTestResult.h"
8#include "mc/network/StubServerLocator.h"
9#include "mc/world/level/GameType.h"
10
11// auto generated forward declare list
12// clang-format off
13class AppPlatform;
16struct PortPair;
17// clang-format on
18
19class ServerLocatorComposite : public ::StubServerLocator {
20public:
21 // member variables
22 // NOLINTBEGIN
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 ServerLocatorComposite& operator=(ServerLocatorComposite const&);
31 ServerLocatorComposite(ServerLocatorComposite const&);
32 ServerLocatorComposite();
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 virtual ~ServerLocatorComposite() /*override*/ = default;
38
39 virtual void startAnnouncingServer(
40 ::std::string const& playerName,
41 ::std::string const& worldName,
43 ::GameType worldGameType,
44 int numPlayers,
45 int maxNumPlayers,
46 bool isJoinableThroughServerScreen,
47 bool isEditorWorld,
48 bool isHardcore
49 ) /*override*/;
50
51 virtual void stopAnnouncingServer(::Bedrock::NonOwnerPointer<::AppPlatform> appPlatform) /*override*/;
52
53 virtual void startServerDiscovery(::PortPair ports) /*override*/;
54
55 virtual void stopServerDiscovery() /*override*/;
56
57 virtual void addCustomServer(::AsynchronousIPResolver const& futureIP, int port) /*override*/;
58
59 virtual void addCustomServer(::std::string const& address, int port) /*override*/;
60
61 virtual ::std::vector<::PingedCompatibleServer> getServerList() const /*override*/;
62
63 virtual void clearServerList() /*override*/;
64
65 virtual void update() /*override*/;
66
67 virtual float getPingTimeForGUID(::std::string const& guid) /*override*/;
68
69 virtual void checkCanConnectToCustomServerAsync(
70 ::std::string hostIpAddress,
71 int port,
72 ::std::function<void(::ServerConnectivityTestResult)> callback
73 ) /*override*/;
74
75 virtual void _onDisable() /*override*/;
76
77 virtual void _onEnable() /*override*/;
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83#ifdef LL_PLAT_C
84 MCNAPI void $startAnnouncingServer(
85 ::std::string const& playerName,
86 ::std::string const& worldName,
88 ::GameType worldGameType,
89 int numPlayers,
90 int maxNumPlayers,
91 bool isJoinableThroughServerScreen,
92 bool isEditorWorld,
93 bool isHardcore
94 );
95
97
98 MCNAPI void $startServerDiscovery(::PortPair ports);
99
100 MCNAPI void $stopServerDiscovery();
101
102 MCNAPI void $addCustomServer(::AsynchronousIPResolver const& futureIP, int port);
103
104 MCNAPI void $addCustomServer(::std::string const& address, int port);
105
106 MCNAPI ::std::vector<::PingedCompatibleServer> $getServerList() const;
107
108 MCNAPI void $clearServerList();
109
110 MCNAPI void $update();
111
112 MCNAPI float $getPingTimeForGUID(::std::string const& guid);
113
115 ::std::string hostIpAddress,
116 int port,
117 ::std::function<void(::ServerConnectivityTestResult)> callback
118 );
119
120 MCNAPI void $_onDisable();
121
122 MCNAPI void $_onEnable();
123#endif
124
125
126 // NOLINTEND
127
128public:
129 // vftables
130 // NOLINTBEGIN
131 MCNAPI static void** $vftable();
132 // NOLINTEND
133};
Definition AppPlatform.h:90
Definition AsynchronousIPResolver.h:5
Definition NonOwnerPointer.h:9
static MCAPI void ** $vftable()
MCAPI void $_onEnable()
MCAPI void $_onDisable()
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 $checkCanConnectToCustomServerAsync(::std::string hostIpAddress, int port, ::std::function< void(::ServerConnectivityTestResult)> callback)
MCAPI void $addCustomServer(::AsynchronousIPResolver const &futureIP, int port)
MCAPI void $startServerDiscovery(::PortPair ports)
MCAPI ::std::vector<::PingedCompatibleServer > $getServerList() const
MCAPI StubServerLocator()
MCAPI void $stopAnnouncingServer(::Bedrock::NonOwnerPointer<::AppPlatform > appPlatform)
MCAPI float $getPingTimeForGUID(::std::string const &guid)
MCAPI void $update()
MCAPI void $clearServerList()
MCAPI void $stopServerDiscovery()
Definition PingedCompatibleServer.h:5
Definition PortPair.h:5
Definition Alias.h:14