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
13
class
AppPlatform
;
14
class
AsynchronousIPResolver
;
15
struct
PingedCompatibleServer
;
16
struct
PortPair
;
17
// clang-format on
18
19
class
ServerLocator
:
public
::NetworkEnableDisableListener
{
20
public
:
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
&,
30
::Bedrock::NonOwnerPointer<::AppPlatform>
,
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
77
public
:
78
// destructor thunk
79
// NOLINTBEGIN
80
MCNAPI
void
$dtor
();
81
// NOLINTEND
82
83
public
:
84
// virtual function thunks
85
// NOLINTBEGIN
86
MCNAPI
void
$_onDisable
();
87
88
MCNAPI
void
$_onEnable
();
89
// NOLINTEND
90
91
public
:
92
// vftables
93
// NOLINTBEGIN
94
MCNAPI
static
void
**
$vftable
();
95
// NOLINTEND
96
};
AppPlatform
Definition
AppPlatform.h:50
AsynchronousIPResolver
Definition
AsynchronousIPResolver.h:5
Bedrock::NonOwnerPointer
Definition
NonOwnerPointer.h:9
NetworkEnableDisableListener
Definition
NetworkEnableDisableListener.h:5
ServerLocator
Definition
ServerLocator.h:19
ServerLocator::$vftable
static MCAPI void ** $vftable()
ServerLocator::$_onEnable
MCAPI void $_onEnable()
ServerLocator::$dtor
MCAPI void $dtor()
ServerLocator::$_onDisable
MCAPI void $_onDisable()
PingedCompatibleServer
Definition
PingedCompatibleServer.h:5
PortPair
Definition
PortPair.h:5
src
mc
network
ServerLocator.h
Generated on Fri Jun 13 2025 05:04:44 for LeviLamina by
1.12.0