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;
17// clang-format on
18
20public:
21 // virtual functions
22 // NOLINTBEGIN
23 // vIndex: 0
24 virtual ~StubServerLocator() /*override*/ = default;
25
26 // vIndex: 3
27 virtual void startAnnouncingServer(
28 ::std::string const& playerName,
29 ::std::string const& worldName,
31 ::GameType gameType,
32 int numPlayers,
33 int maxNumPlayers,
34 bool isJoinableThroughServerScreen,
35 bool isEditorWorld,
36 bool isHardcore
37 ) /*override*/;
38
39 // vIndex: 4
40 virtual void stopAnnouncingServer(::Bedrock::NonOwnerPointer<::AppPlatform> appPlatform) /*override*/;
41
42 // vIndex: 5
43 virtual void startServerDiscovery(::PortPair ports) /*override*/;
44
45 // vIndex: 8
46 virtual void addCustomServer(::AsynchronousIPResolver const& futureIP, int port) /*override*/;
47
48 // vIndex: 7
49 virtual void addCustomServer(::std::string const& address, int port) /*override*/;
50
51 // vIndex: 6
52 virtual void stopServerDiscovery() /*override*/;
53
54 // vIndex: 9
55 virtual ::std::vector<::PingedCompatibleServer> getServerList() const /*override*/;
56
57 // vIndex: 10
58 virtual void clearServerList() /*override*/;
59
60 // vIndex: 11
61 virtual void update() /*override*/;
62
63 // vIndex: 12
64 virtual float getPingTimeForGUID(::std::string const& guid) /*override*/;
65
66 // vIndex: 13
67 virtual void checkCanConnectToCustomServerAsync(
68 ::std::string hostIpAddress,
69 int port,
70 ::std::function<void(::ServerConnectivityTestResult)> callback
71 ) /*override*/;
72 // NOLINTEND
73
74public:
75 // member functions
76 // NOLINTBEGIN
78 // NOLINTEND
79
80public:
81 // constructor thunks
82 // NOLINTBEGIN
83 MCNAPI void* $ctor();
84 // NOLINTEND
85
86public:
87 // virtual function thunks
88 // NOLINTBEGIN
90 ::std::string const& playerName,
91 ::std::string const& worldName,
93 ::GameType gameType,
94 int numPlayers,
95 int maxNumPlayers,
96 bool isJoinableThroughServerScreen,
97 bool isEditorWorld,
98 bool isHardcore
99 );
100
102
104
105 MCNAPI void $addCustomServer(::AsynchronousIPResolver const& futureIP, int port);
106
107 MCNAPI void $addCustomServer(::std::string const& address, int port);
108
109 MCNAPI void $stopServerDiscovery();
110
111 MCNAPI ::std::vector<::PingedCompatibleServer> $getServerList() const;
112
113 MCNAPI void $clearServerList();
114
115 MCNAPI void $update();
116
117 MCNAPI float $getPingTimeForGUID(::std::string const& guid);
118
120 ::std::string hostIpAddress,
121 int port,
122 ::std::function<void(::ServerConnectivityTestResult)> callback
123 );
124 // NOLINTEND
125
126public:
127 // vftables
128 // NOLINTBEGIN
129 MCNAPI static void** $vftable();
130 // NOLINTEND
131};
Definition AppPlatform.h:50
Definition AsynchronousIPResolver.h:5
Definition NonOwnerPointer.h:9
Definition ServerLocator.h:19
Definition StubServerLocator.h:19
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 $addCustomServer(::std::string const &address, int port)
static MCAPI void ** $vftable()
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 * $ctor()
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