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
20public:
21 // virtual functions
22 // NOLINTBEGIN
23 // vIndex: 0
24 virtual ~ServerLocator() /*override*/;
25
26 // vIndex: 3
27 virtual void startAnnouncingServer(
28 ::std::string const&,
29 ::std::string const&,
31 ::GameType,
32 int,
33 int,
34 bool,
35 bool,
36 bool
37 ) = 0;
38
39 // vIndex: 4
40 virtual void stopAnnouncingServer(::Bedrock::NonOwnerPointer<::AppPlatform>) = 0;
41
42 // vIndex: 5
43 virtual void startServerDiscovery(::PortPair) = 0;
44
45 // vIndex: 6
46 virtual void stopServerDiscovery() = 0;
47
48 // vIndex: 8
49 virtual void addCustomServer(::AsynchronousIPResolver const&, int) = 0;
50
51 // vIndex: 7
52 virtual void addCustomServer(::std::string const&, int) = 0;
53
54 // vIndex: 9
55 virtual ::std::vector<::PingedCompatibleServer> getServerList() const = 0;
56
57 // vIndex: 10
58 virtual void clearServerList() = 0;
59
60 // vIndex: 11
61 virtual void update() = 0;
62
63 // vIndex: 12
64 virtual float getPingTimeForGUID(::std::string const&) = 0;
65
66 // vIndex: 13
67 virtual void
68 checkCanConnectToCustomServerAsync(::std::string, int, ::std::function<void(::ServerConnectivityTestResult)>) = 0;
69
70 // vIndex: 1
71 virtual void _onDisable() /*override*/;
72
73 // vIndex: 2
74 virtual void _onEnable() /*override*/;
75 // NOLINTEND
76
77public:
78 // destructor thunk
79 // NOLINTBEGIN
80 MCAPI void $dtor();
81 // NOLINTEND
82
83public:
84 // virtual function thunks
85 // NOLINTBEGIN
86 MCFOLD void $_onDisable();
87
88 MCFOLD void $_onEnable();
89 // NOLINTEND
90
91public:
92 // vftables
93 // NOLINTBEGIN
94 MCAPI static void** $vftable();
95 // NOLINTEND
96};
Definition AppPlatform.h:49
Definition AsynchronousIPResolver.h:5
Definition NonOwnerPointer.h:9
Definition NetworkEnableDisableListener.h:5
Definition ServerLocator.h:19
Definition PingedCompatibleServer.h:5
Definition PortPair.h:5