LeviLamina
Loading...
Searching...
No Matches
ModalToolContainer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/runtime/Result_deprecated.h"
7#include "mc/editor/Mode.h"
8#include "mc/editor/datastore/EventType.h"
9#include "mc/editor/datastore/container/Container.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace Editor::DataStore { class PayloadEventDispatcher; }
14namespace Editor::DataStore { struct PayloadDescription; }
15namespace Json { class Value; }
16// clang-format on
17
18namespace Editor::DataStore {
19
20class ModalToolContainer : public ::Editor::DataStore::Container {
21public:
22 // member variables
23 // NOLINTBEGIN
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
32 ModalToolContainer& operator=(ModalToolContainer const&);
33 ModalToolContainer(ModalToolContainer const&);
34 ModalToolContainer();
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 virtual ~ModalToolContainer() /*override*/;
40
41 virtual void clear() /*override*/;
42 // NOLINTEND
43
44public:
45 // member functions
46 // NOLINTBEGIN
48
49 MCNAPI bool _createTool(::std::string const& id, ::Json::Value const& payload);
50
51 MCNAPI void _onSelectedToolUpdated(::Json::Value const& current, ::Json::Value const& prev);
52
53 MCNAPI void _onToolCreated(::std::string const& id);
54
55 MCNAPI void _onToolDestroyed(::std::string const& id);
56
57 MCNAPI void _onToolUpdated(::std::string const& id, ::std::string const& propName);
58
59 MCNAPI bool _removeTool(::std::string const& id);
60
61 MCNAPI ::Json::Value getDataPayload(::Editor::DataStore::PayloadDescription const& desc) const;
62
64
65 MCNAPI ::Scripting::Result_deprecated<void> handleDataEvent(
66 ::Editor::DataStore::EventType eventType,
67 ::Json::Value const& payload,
69 );
70
71 MCNAPI ::Scripting::Result_deprecated<void> handleSelectedToolEvent(
72 ::Editor::DataStore::EventType eventType,
73 ::Json::Value const& payload,
74 bool isNetworkEvent
75 );
76
77 MCNAPI void notifyModeChange(::Editor::Mode newMode);
78 // NOLINTEND
79
80public:
81 // static variables
82 // NOLINTBEGIN
83 MCNAPI static ::std::add_lvalue_reference_t<char const[]> TAG_DATA();
84
85 MCNAPI static ::std::add_lvalue_reference_t<char const[]> TAG_SELECTED_TOOL();
86 // NOLINTEND
87
88public:
89 // constructor thunks
90 // NOLINTBEGIN
91 MCNAPI void* $ctor(::Editor::DataStore::PayloadEventDispatcher& dispatcher, bool isServer);
92 // NOLINTEND
93
94public:
95 // destructor thunk
96 // NOLINTBEGIN
97 MCNAPI void $dtor();
98 // NOLINTEND
99
100public:
101 // virtual function thunks
102 // NOLINTBEGIN
103 MCNAPI void $clear();
104
105
106 // NOLINTEND
107
108public:
109 // vftables
110 // NOLINTBEGIN
111 MCNAPI static void** $vftable();
112 // NOLINTEND
113};
114
115} // namespace Editor::DataStore
Definition Container.h:7
MCAPI::Json::Value getSelectedToolPayload(::Editor::DataStore::PayloadDescription const &) const
MCAPI void _onToolCreated(::std::string const &id)
MCAPI void _onToolDestroyed(::std::string const &id)
static MCAPI ::std::add_lvalue_reference_t< char const[]> TAG_SELECTED_TOOL()
MCAPI ::Scripting::Result_deprecated< void > handleSelectedToolEvent(::Editor::DataStore::EventType eventType, ::Json::Value const &payload, bool isNetworkEvent)
MCAPI bool _createTool(::std::string const &id, ::Json::Value const &payload)
MCAPI ModalToolContainer(::Editor::DataStore::PayloadEventDispatcher &dispatcher, bool isServer)
static MCAPI ::std::add_lvalue_reference_t< char const[]> TAG_DATA()
MCAPI void _onSelectedToolUpdated(::Json::Value const &current, ::Json::Value const &prev)
MCAPI void _onToolUpdated(::std::string const &id, ::std::string const &propName)
MCAPI ::Scripting::Result_deprecated< void > handleDataEvent(::Editor::DataStore::EventType eventType, ::Json::Value const &payload, ::Editor::DataStore::PayloadDescription const &desc)
MCAPI bool _removeTool(::std::string const &id)
MCAPI void * $ctor(::Editor::DataStore::PayloadEventDispatcher &dispatcher, bool isServer)
MCAPI void notifyModeChange(::Editor::Mode newMode)
MCAPI::Json::Value getDataPayload(::Editor::DataStore::PayloadDescription const &desc) const
Definition PayloadEventDispatcher.h:17
Definition Value.h:16
Definition PayloadDescription.h:12
Definition Alias.h:14