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