LeviLamina
Loading...
Searching...
No Matches
ServerLocator.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/network/NetworkEnableDisableListener.h"
7#include "mc/network/ServerConnectivityTestResult.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
17class ServerLocator : public ::NetworkEnableDisableListener {
18public:
19 // virtual functions
20 // NOLINTBEGIN
21 virtual ~ServerLocator() /*override*/;
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 ) = 0;
33
34 virtual void stopAnnouncingServer() = 0;
35
36 virtual void startServerDiscovery(::PortPair ports) = 0;
37
38 virtual void stopServerDiscovery() = 0;
39
40 virtual void addCustomServer(::AsynchronousIPResolver const& futureIP, int port) = 0;
41
42 virtual void addCustomServer(::std::string const& address, int port) = 0;
43
44 virtual ::std::vector<::PingedCompatibleServer> getServerList() const = 0;
45
46 virtual void clearServerList() = 0;
47
48 virtual void update() = 0;
49
50 virtual float getPingTimeForGUID(::std::string const& guid) = 0;
51
52 virtual void checkCanConnectToCustomServerAsync(
53 ::std::string hostIpAddress,
54 int port,
55 ::std::function<void(::ServerConnectivityTestResult)> callback
56 ) = 0;
57
58 virtual void _onDisable() /*override*/;
59
60 virtual void _onEnable() /*override*/;
61 // NOLINTEND
62
63public:
64 // destructor thunk
65 // NOLINTBEGIN
66 MCNAPI void $dtor();
67 // NOLINTEND
68
69public:
70 // virtual function thunks
71 // NOLINTBEGIN
72 MCNAPI void $_onDisable();
73
74 MCNAPI void $_onEnable();
75
76
77 // NOLINTEND
78
79public:
80 // vftables
81 // NOLINTBEGIN
82 MCNAPI static void** $vftable();
83 // NOLINTEND
84};
Definition AsynchronousIPResolver.h:5
Definition ServerLocator.h:17
static MCAPI void ** $vftable()
MCAPI void $_onEnable()
MCAPI void $dtor()
MCAPI void $_onDisable()
Definition PingedCompatibleServer.h:5
Definition PortPair.h:5