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/deps/core/utility/NonOwnerPointer.h"
7#include "mc/network/NetworkEnableDisableListener.h"
8#include "mc/network/ServerConnectivityTestResult.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
19class ServerLocator : public ::NetworkEnableDisableListener {
20public:
21 // virtual functions
22 // NOLINTBEGIN
23 virtual ~ServerLocator() /*override*/;
24
25 virtual void startAnnouncingServer(
26 ::std::string const&,
27 ::std::string const&,
29 ::GameType,
30 int,
31 int,
32 bool,
33 bool,
34 bool
35 ) = 0;
36
37 virtual void stopAnnouncingServer(::Bedrock::NonOwnerPointer<::AppPlatform>) = 0;
38
39 virtual void startServerDiscovery(::PortPair) = 0;
40
41 virtual void stopServerDiscovery() = 0;
42
43 virtual void addCustomServer(::AsynchronousIPResolver const&, int) = 0;
44
45 virtual void addCustomServer(::std::string const&, int) = 0;
46
47 virtual ::std::vector<::PingedCompatibleServer> getServerList() const = 0;
48
49 virtual void clearServerList() = 0;
50
51 virtual void update() = 0;
52
53 virtual float getPingTimeForGUID(::std::string const&) = 0;
54
55 virtual void
56 checkCanConnectToCustomServerAsync(::std::string, int, ::std::function<void(::ServerConnectivityTestResult)>) = 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 AppPlatform.h:90
Definition AsynchronousIPResolver.h:5
Definition NonOwnerPointer.h:9
Definition ServerLocator.h:19
static MCAPI void ** $vftable()
MCAPI void $_onEnable()
MCAPI void $dtor()
MCAPI void $_onDisable()
Definition PingedCompatibleServer.h:5
Definition PortPair.h:5