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;
17struct PortPair;
18// clang-format on
19
20class ServerLocatorComposite : public ::StubServerLocator {
21public:
22 // member variables
23 // NOLINTBEGIN
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 ServerLocatorComposite& operator=(ServerLocatorComposite const&);
32 ServerLocatorComposite(ServerLocatorComposite const&);
33 ServerLocatorComposite();
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual ~ServerLocatorComposite() /*override*/ = default;
39
40 virtual void startAnnouncingServer(
41 ::std::string const& playerName,
42 ::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() /*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 // member functions
82 // NOLINTBEGIN
83#ifdef LL_PLAT_C
84 MCNAPI ServerLocatorComposite(
85 ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner> networkSessionOwner,
87 );
88#endif
89 // NOLINTEND
90
91public:
92 // constructor thunks
93 // NOLINTBEGIN
94#ifdef LL_PLAT_C
95 MCNAPI void* $ctor(
96 ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner> networkSessionOwner,
98 );
99#endif
100 // NOLINTEND
101
102public:
103 // virtual function thunks
104 // NOLINTBEGIN
105#ifdef LL_PLAT_C
106 MCNAPI void $startAnnouncingServer(
107 ::std::string const& playerName,
108 ::std::string const& worldName,
109 ::GameType worldGameType,
110 int numPlayers,
111 int maxNumPlayers,
112 bool isJoinableThroughServerScreen,
113 bool isEditorWorld,
114 bool isHardcore
115 );
116
117 MCNAPI void $stopAnnouncingServer();
118
119 MCNAPI void $startServerDiscovery(::PortPair ports);
120
121 MCNAPI void $stopServerDiscovery();
122
123 MCNAPI void $addCustomServer(::AsynchronousIPResolver const& futureIP, int port);
124
125 MCNAPI void $addCustomServer(::std::string const& address, int port);
126
127 MCNAPI ::std::vector<::PingedCompatibleServer> $getServerList() const;
128
129 MCNAPI void $clearServerList();
130
131 MCNAPI void $update();
132
133 MCNAPI float $getPingTimeForGUID(::std::string const& guid);
134
136 ::std::string hostIpAddress,
137 int port,
138 ::std::function<void(::ServerConnectivityTestResult)> callback
139 );
140
141 MCNAPI void $_onDisable();
142
143 MCNAPI void $_onEnable();
144#endif
145
146
147 // NOLINTEND
148
149public:
150 // vftables
151 // NOLINTBEGIN
152 MCNAPI static void** $vftable();
153 // NOLINTEND
154};
Definition AppPlatform.h:91
Definition AsynchronousIPResolver.h:5
Definition NonOwnerPointer.h:9
Definition NetworkSessionOwner.h:9
static MCAPI void ** $vftable()
MCAPI void $_onEnable()
MCAPI void $_onDisable()
Definition StubServerLocator.h:17
MCAPI void $stopAnnouncingServer()
MCAPI void $startAnnouncingServer(::std::string const &playerName, ::std::string const &worldName, ::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 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