LeviLamina
Loading...
Searching...
No Matches
RpcService.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
8namespace Editor { class ServiceProviderCollection; }
9namespace Editor::Rpc { struct RpcRejection; }
10namespace Scripting { struct ModuleBinding; }
11namespace cereal { class BasicLoader; }
12namespace cereal { class BasicSaver; }
13namespace cereal { struct SchemaReader; }
14namespace cereal { struct SchemaWriter; }
15// clang-format on
16
17namespace Editor::Rpc {
18
19class RpcService {
20public:
21 // RpcService inner types declare
22 // clang-format off
23 struct DispatchTarget;
24 // clang-format on
25
26 // RpcService inner types define
27 struct DispatchTarget {
28 public:
29 // member variables
30 // NOLINTBEGIN
33 // NOLINTEND
34
35 public:
36 // prevent constructor by default
37 DispatchTarget& operator=(DispatchTarget const&);
38 DispatchTarget(DispatchTarget const&);
39 DispatchTarget();
40 };
41
42public:
43 // member variables
44 // NOLINTBEGIN
59 // NOLINTEND
60
61public:
62 // prevent constructor by default
63 RpcService& operator=(RpcService const&);
64 RpcService(RpcService const&);
65 RpcService();
66
67public:
68 // member functions
69 // NOLINTBEGIN
70 MCNAPI explicit RpcService(::Editor::ServiceProviderCollection& serviceProviders);
71
72 MCNAPI bool _saveResult(
73 ::entt::meta_type type,
76 ::entt::meta_any const& any
77 ) const;
78
79 MCNAPI void callWithCallback(
80 ::std::string const& className,
81 ::std::string const& methodName,
82 ::std::string const& serializedArgs,
83 ::std::function<void(::Editor::Rpc::RpcRejection, ::std::string)> callback
84 );
85
86 MCNAPI void registerModule(::Scripting::ModuleBinding&& moduleBinding, ::std::string subsystem);
87
88 MCNAPI void shutdown();
89
90 MCNAPI ~RpcService();
91 // NOLINTEND
92
93public:
94 // constructor thunks
95 // NOLINTBEGIN
96 MCNAPI void* $ctor(::Editor::ServiceProviderCollection& serviceProviders);
97 // NOLINTEND
98
99public:
100 // destructor thunk
101 // NOLINTBEGIN
102 MCNAPI void $dtor();
103 // NOLINTEND
104};
105
106} // namespace Editor::Rpc
Definition BedrockLoadContext.h:5
MCAPI RpcService(::Editor::ServiceProviderCollection &serviceProviders)
MCAPI void registerModule(::Scripting::ModuleBinding &&moduleBinding, ::std::string subsystem)
MCAPI void callWithCallback(::std::string const &className, ::std::string const &methodName, ::std::string const &serializedArgs, ::std::function< void(::Editor::Rpc::RpcRejection, ::std::string)> callback)
MCAPI bool _saveResult(::entt::meta_type type, ::cereal::BasicSaver &saver, ::cereal::SchemaWriter &writer, ::entt::meta_any const &any) const
MCAPI void * $ctor(::Editor::ServiceProviderCollection &serviceProviders)
Definition ServiceProviderCollection.h:7
Definition BasicLoader.h:18
Definition BasicSaver.h:18
Definition RpcRejection.h:7
Definition RpcService.h:27
Definition ModuleBinding.h:23
Definition SchemaReader.h:12
Definition SchemaWriter.h:16
Definition Alias.h:14