LeviLamina
Loading...
Searching...
No Matches
JsonRpcProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/threading/Async.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace Json { class Value; }
11namespace NetherNet { struct NetworkID; }
12namespace cereal { struct ReflectionCtx; }
13// clang-format on
14
15namespace JsonRpc {
16
18public:
19 // member variables
20 // NOLINTBEGIN
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 JsonRpcProvider& operator=(JsonRpcProvider const&);
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 // vIndex: 0
37 virtual ~JsonRpcProvider();
38
39 // vIndex: 1
40 virtual ::Bedrock::Threading::Async<::nonstd::expected<::Json::Value, ::Json::Value>>
41 sendJsonRpcTo(::NetherNet::NetworkID, ::std::optional<::std::string> const&, ::std::string const&) const = 0;
42
43 // vIndex: 2
44 virtual ::Bedrock::Threading::Async<::nonstd::expected<::Json::Value, ::Json::Value>>
45 sendJsonRpc(::std::string const&) const = 0;
46
47 // vIndex: 3
48 virtual ::Bedrock::Threading::Async<::nonstd::expected<::Json::Value, ::Json::Value>> sendPing() const = 0;
49
50 // vIndex: 4
51 virtual ::Bedrock::Threading::Async<::nonstd::expected<::Json::Value, ::Json::Value>> sendTurnConfigRequest() = 0;
52
53 // vIndex: 5
54 virtual ::cereal::ReflectionCtx& getReflectionContext() = 0;
55
56 // vIndex: 6
57 virtual ::std::unique_ptr<::std::string, ::std::function<void(::std::string*)>>
58 registerJsonRpcMethod(::std::string, ::std::function<void(::std::string, ::Json::Value const&)>) = 0;
59
60 // vIndex: 7
61 virtual void dispatchJsonRpc(::std::string const&, ::Json::Value const&) = 0;
62
63 // vIndex: 8
64 virtual void
65 handleJsonRpcResult(::std::string id, ::nonstd::expected<::Json::Value, ::Json::Value> const& result) = 0;
66
67 // vIndex: 9
68 virtual void _unregisterJsonRpcMethod(::std::string) = 0;
69 // NOLINTEND
70
71public:
72 // member functions
73 // NOLINTBEGIN
75 // NOLINTEND
76
77public:
78 // constructor thunks
79 // NOLINTBEGIN
80 MCNAPI void* $ctor();
81 // NOLINTEND
82
83public:
84 // destructor thunk
85 // NOLINTBEGIN
86 MCNAPI void $dtor();
87 // NOLINTEND
88
89public:
90 // virtual function thunks
91 // NOLINTBEGIN
92
93 // NOLINTEND
94
95public:
96 // vftables
97 // NOLINTBEGIN
98 MCNAPI static void** $vftable();
99 // NOLINTEND
100};
101
102} // namespace JsonRpc
Definition JsonRpcProvider.h:17
static MCAPI void ** $vftable()
Definition Value.h:16
Definition NetworkID.h:21
Definition Alias.h:14