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/network/ServerConnectivityTestResult.h"
7#include "mc/network/ServerLocator.h"
8#include "mc/world/level/GameType.h"
9
10// auto generated forward declare list
11// clang-format off
14struct PortPair;
15// clang-format on
16
18public:
19 // virtual functions
20 // NOLINTBEGIN
21 virtual ~StubServerLocator() /*override*/ = default;
22
23 virtual void startAnnouncingServer(
24 ::std::string const& playerName,
25 ::std::string const& worldName,
26 ::GameType gameType,
27 int numPlayers,
28 int maxNumPlayers,
29 bool isJoinableThroughServerScreen,
30 bool isEditorWorld,
31 bool isHardcore
32 ) /*override*/;
33
34 virtual void stopAnnouncingServer() /*override*/;
35
36 virtual void startServerDiscovery(::PortPair ports) /*override*/;
37
38 virtual void addCustomServer(::AsynchronousIPResolver const& futureIP, int port) /*override*/;
39
40 virtual void addCustomServer(::std::string const& address, int port) /*override*/;
41
42 virtual void stopServerDiscovery() /*override*/;
43
44 virtual ::std::vector<::PingedCompatibleServer> getServerList() const /*override*/;
45
46 virtual void clearServerList() /*override*/;
47
48 virtual void update() /*override*/;
49
50 virtual float getPingTimeForGUID(::std::string const& guid) /*override*/;
51
52 virtual void checkCanConnectToCustomServerAsync(
53 ::std::string hostIpAddress,
54 int port,
55 ::std::function<void(::ServerConnectivityTestResult)> callback
56 ) /*override*/;
57 // NOLINTEND
58
59public:
60 // virtual function thunks
61 // NOLINTBEGIN
63 ::std::string const& playerName,
64 ::std::string const& worldName,
65 ::GameType gameType,
66 int numPlayers,
67 int maxNumPlayers,
68 bool isJoinableThroughServerScreen,
69 bool isEditorWorld,
70 bool isHardcore
71 );
72
73 MCNAPI void $stopAnnouncingServer();
74
76
77 MCNAPI void $addCustomServer(::AsynchronousIPResolver const& futureIP, int port);
78
79 MCNAPI void $addCustomServer(::std::string const& address, int port);
80
81 MCNAPI void $stopServerDiscovery();
82
83 MCNAPI ::std::vector<::PingedCompatibleServer> $getServerList() const;
84
85 MCNAPI void $clearServerList();
86
87 MCNAPI void $update();
88
89 MCNAPI float $getPingTimeForGUID(::std::string const& guid);
90
92 ::std::string hostIpAddress,
93 int port,
94 ::std::function<void(::ServerConnectivityTestResult)> callback
95 );
96
97
98 // NOLINTEND
99
100public:
101 // vftables
102 // NOLINTBEGIN
103 MCNAPI static void** $vftable();
104 // NOLINTEND
105};
Definition AsynchronousIPResolver.h:5
Definition ServerLocator.h:17
Definition StubServerLocator.h:17
MCAPI void $stopAnnouncingServer()
MCAPI void $addCustomServer(::std::string const &address, int port)
MCAPI void $startAnnouncingServer(::std::string const &playerName, ::std::string const &worldName, ::GameType gameType, int numPlayers, int maxNumPlayers, bool isJoinableThroughServerScreen, bool isEditorWorld, bool isHardcore)
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 float $getPingTimeForGUID(::std::string const &guid)
MCAPI void $update()
MCAPI void $clearServerList()
MCAPI void $stopServerDiscovery()
Definition PingedCompatibleServer.h:5
Definition PortPair.h:5