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