LeviLamina
Loading...
Searching...
No Matches
WebRtcComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/nether_net/ESessionError.h"
7#include "mc/network/services/signaling/IJsonRpcComponent.h"
8
9// auto generated forward declare list
10// clang-format off
12namespace JsonRpc { class JsonRpcProvider; }
13namespace JsonRpc { class ReceiveClientMessageResult; }
14namespace NetherNet { struct NetworkID; }
15namespace PlayerMessaging { struct NetworkID; }
16// clang-format on
17
18namespace JsonRpc {
19
20class WebRtcComponent : public ::IJsonRpcComponent, public ::std::enable_shared_from_this<::JsonRpc::WebRtcComponent> {
21public:
22 // member variables
23 // NOLINTBEGIN
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 WebRtcComponent& operator=(WebRtcComponent const&);
35 WebRtcComponent(WebRtcComponent const&);
36 WebRtcComponent();
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 virtual void initialize(::std::shared_ptr<::JsonRpc::JsonRpcProvider> provider) /*override*/;
42
43 virtual ~WebRtcComponent() /*override*/;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCNAPI explicit WebRtcComponent(::std::shared_ptr<::ISignalingJsonRpcInterop> interop);
50
51 MCNAPI void
52 _sendDeliveryNotification(::PlayerMessaging::NetworkID const& toPlayerId, ::std::string const& messageId);
53
55
56 MCNAPI void sendJsonRpcSignal(
57 ::NetherNet::NetworkID networkIDTo,
58 ::NetherNet::NetworkID networkIDFrom,
59 ::std::string const& message,
60 ::std::function<void(::NetherNet::ESessionError)>&& onComplete
61 );
62
63 MCNAPI void sendTurnConfigRequest();
64 // NOLINTEND
65
66public:
67 // constructor thunks
68 // NOLINTBEGIN
69 MCNAPI void* $ctor(::std::shared_ptr<::ISignalingJsonRpcInterop> interop);
70 // NOLINTEND
71
72public:
73 // destructor thunk
74 // NOLINTBEGIN
75 MCNAPI void $dtor();
76 // NOLINTEND
77
78public:
79 // virtual function thunks
80 // NOLINTBEGIN
81 MCNAPI void $initialize(::std::shared_ptr<::JsonRpc::JsonRpcProvider> provider);
82
83
84 // NOLINTEND
85
86public:
87 // vftables
88 // NOLINTBEGIN
89 MCNAPI static void** $vftable();
90 // NOLINTEND
91};
92
93} // namespace JsonRpc
Definition IJsonRpcComponent.h:10
Definition ISignalingJsonRpcInterop.h:20
Definition JsonRpcProvider.h:19
Definition ReceiveClientMessageResult.h:12
MCAPI void parseJsonRpcClientMessage(::JsonRpc::ReceiveClientMessageResult const &result)
MCAPI void sendJsonRpcSignal(::NetherNet::NetworkID networkIDTo, ::NetherNet::NetworkID networkIDFrom, ::std::string const &message, ::std::function< void(::NetherNet::ESessionError)> &&onComplete)
MCAPI WebRtcComponent(::std::shared_ptr<::ISignalingJsonRpcInterop > interop)
MCAPI void * $ctor(::std::shared_ptr<::ISignalingJsonRpcInterop > interop)
MCAPI void sendTurnConfigRequest()
static MCAPI void ** $vftable()
MCAPI void _sendDeliveryNotification(::PlayerMessaging::NetworkID const &toPlayerId, ::std::string const &messageId)
MCAPI void $initialize(::std::shared_ptr<::JsonRpc::JsonRpcProvider > provider)
Definition NetworkID.h:17
Definition NetworkID.h:12
Definition Alias.h:14