LeviLamina
Loading...
Searching...
No Matches
DeprecatedEventFactory.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Json { class Value; }
8// clang-format on
9
10namespace Editor::DataStore {
11
13public:
14 // DeprecatedEventFactory inner types declare
15 // clang-format off
16 struct SerializedEvent;
17 // clang-format on
18
19 // DeprecatedEventFactory inner types define
20 enum class ClientActionEventType : int {
21 ActionExecute = 1,
22 };
23
24 enum class ServerUXEventType : int {
25 UpdateMenu = 3,
26 DestroyMenu = 4,
27 UpdateModalToolOption = 7,
28 DestroyModalToolOption = 8,
29 BindActionToControl = 11,
30 RemoveActionBindingFromControl = 12,
31 };
32
33 struct SerializedEvent {
34 public:
35 // member variables
36 // NOLINTBEGIN
39 // NOLINTEND
40
41 public:
42 // prevent constructor by default
43 SerializedEvent& operator=(SerializedEvent const&);
44 SerializedEvent(SerializedEvent const&);
45 SerializedEvent();
46
47 public:
48 // member functions
49 // NOLINTBEGIN
51 // NOLINTEND
52
53 public:
54 // destructor thunk
55 // NOLINTBEGIN
56 MCNAPI void $dtor();
57 // NOLINTEND
58 };
59
60public:
61 // static functions
62 // NOLINTBEGIN
63 MCNAPI static ::Json::Value buildClientPayloadExecuteAction(::std::string const& id, ::Json::Value const& payload);
64
65 MCNAPI static ::Json::Value buildNotificationPayload(::std::string const& dataTag, ::std::string const& payload);
66
67 MCNAPI static ::Json::Value buildServerPayloadBindControlToAction(::Json::Value const& payload);
68
69 MCNAPI static ::Json::Value buildServerPayloadCreateOrUpdateMenu(::Json::Value const& payload);
70
71 MCNAPI static ::Json::Value buildServerPayloadCreateOrUpdateModalTool(::Json::Value const& payload);
72
73 MCNAPI static ::Json::Value buildServerPayloadDestroyMenu(::std::string const& id);
74
75 MCNAPI static ::Json::Value buildServerPayloadDestroyModalTool(::std::string const& id);
76
77 MCNAPI static ::Json::Value buildServerPayloadRemoveActionFromControl(::Json::Value const& payload);
78
79 MCNAPI static ::Editor::DataStore::DeprecatedEventFactory::SerializedEvent
81
82 MCNAPI static ::std::optional<::Editor::DataStore::DeprecatedEventFactory::SerializedEvent>
84 // NOLINTEND
85};
86
87} // namespace Editor::DataStore
Definition DeprecatedEventFactory.h:12
static MCAPI ::Json::Value buildServerPayloadCreateOrUpdateMenu(::Json::Value const &payload)
static MCAPI ::Json::Value buildServerPayloadDestroyMenu(::std::string const &id)
static MCAPI ::Json::Value buildServerPayloadDestroyModalTool(::std::string const &id)
static MCAPI ::Json::Value buildClientPayloadExecuteAction(::std::string const &id, ::Json::Value const &payload)
static MCAPI ::Json::Value buildServerPayloadCreateOrUpdateModalTool(::Json::Value const &payload)
static MCAPI ::Json::Value buildNotificationPayload(::std::string const &dataTag, ::std::string const &payload)
static MCAPI ::Json::Value buildServerPayloadRemoveActionFromControl(::Json::Value const &payload)
static MCAPI ::Json::Value buildServerPayloadBindControlToAction(::Json::Value const &payload)
static MCAPI ::Editor::DataStore::DeprecatedEventFactory::SerializedEvent getSerializedEvent(::Json::Value const &payload)
static MCAPI ::std::optional<::Editor::DataStore::DeprecatedEventFactory::SerializedEvent > tryGetSerializedEvent(::Json::Value const &payload)
Definition Value.h:16
Definition Alias.h:14