LeviLamina
Loading...
Searching...
No Matches
ServerCommunicationInterface.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7struct NetworkAddress;
8namespace Json { class Value; }
9// clang-format on
10
11class ServerCommunicationInterface {
12public:
13 // member variables
14 // NOLINTBEGIN
17 // NOLINTEND
18
19public:
20 // prevent constructor by default
21 ServerCommunicationInterface& operator=(ServerCommunicationInterface const&);
22 ServerCommunicationInterface(ServerCommunicationInterface const&);
23 ServerCommunicationInterface();
24
25public:
26 // member functions
27 // NOLINTBEGIN
28#ifdef LL_PLAT_S
29 MCNAPI void communicate(::std::string const& method, ::Json::Value const& params);
30
31 MCNAPI void sendBandwidthMetric(
32 uint64 connectionTotalBytesReceived,
33 uint64 connectionTotalBytesSent,
34 uint64 playerDeltaBytesReceived,
35 uint64 playerDeltaBytesSent,
36 ::std::string const& xuid
37 );
38
39 MCNAPI void sendServerStarted();
40#endif
41 // NOLINTEND
42
43public:
44 // static functions
45 // NOLINTBEGIN
46#ifdef LL_PLAT_S
47 MCNAPI static ::std::unique_ptr<::ServerCommunicationInterface> create(::NetworkAddress const& address);
48#endif
49 // NOLINTEND
50};
Definition Value.h:16
Definition NetworkAddress.h:5
Definition Alias.h:14