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&);
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 // vIndex: 1
42 virtual void initialize(::std::shared_ptr<::JsonRpc::JsonRpcProvider> provider) /*override*/;
43
44 // vIndex: 0
45 virtual ~WebRtcComponent() /*override*/;
46 // NOLINTEND
47
48public:
49 // member functions
50 // NOLINTBEGIN
51 MCNAPI explicit WebRtcComponent(::std::shared_ptr<::ISignalingJsonRpcInterop> interop);
52
53 MCNAPI void
54 _sendDeliveryNotification(::PlayerMessaging::NetworkID const& toPlayerId, ::std::string const& messageId);
55
57
58 MCNAPI void sendJsonRpcSignal(
59 ::NetherNet::NetworkID networkIDTo,
60 ::NetherNet::NetworkID networkIDFrom,
61 ::std::string const& message,
62 ::std::function<void(::NetherNet::ESessionError)>&& onComplete
63 );
64
65 MCNAPI void sendTurnConfigRequest();
66 // NOLINTEND
67
68public:
69 // constructor thunks
70 // NOLINTBEGIN
71 MCNAPI void* $ctor(::std::shared_ptr<::ISignalingJsonRpcInterop> interop);
72 // NOLINTEND
73
74public:
75 // destructor thunk
76 // NOLINTBEGIN
77 MCNAPI void $dtor();
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCNAPI void $initialize(::std::shared_ptr<::JsonRpc::JsonRpcProvider> provider);
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:21
Definition ReceiveClientMessageResult.h:7
Definition WebRtcComponent.h:20
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:7
Definition Alias.h:14