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
50#ifdef LL_PLAT_C
51 MCNAPI ~SerializedEvent();
52#endif
53 // NOLINTEND
54
55 public:
56 // destructor thunk
57 // NOLINTBEGIN
58#ifdef LL_PLAT_C
59 MCNAPI void $dtor();
60#endif
61 // NOLINTEND
62 };
63
64public:
65 // static functions
66 // NOLINTBEGIN
67 MCNAPI static ::Json::Value buildNotificationPayload(::std::string const& dataTag, ::std::string const& payload);
68
69 MCNAPI static ::Json::Value buildServerPayloadDestroyMenu(::std::string const& id);
70
71 MCNAPI static ::Json::Value buildServerPayloadDestroyModalTool(::std::string const& id);
72
73 MCNAPI static ::Editor::DataStore::DeprecatedEventFactory::SerializedEvent
75
76 MCNAPI static ::std::optional<::Editor::DataStore::DeprecatedEventFactory::SerializedEvent>
78 // NOLINTEND
79};
80
81} // namespace Editor::DataStore
Definition DeprecatedEventFactory.h:12
static MCAPI ::Json::Value buildServerPayloadDestroyMenu(::std::string const &id)
static MCAPI ::Json::Value buildServerPayloadDestroyModalTool(::std::string const &id)
static MCAPI ::Json::Value buildNotificationPayload(::std::string const &dataTag, ::std::string 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