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/datastore/EventType.h"
8#include "mc/editor/datastore/container/Container.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace Editor::DataStore { struct PayloadDescription; }
13namespace Json { class Value; }
14// clang-format on
15
16namespace Editor::DataStore {
17
19public:
20 // member variables
21 // NOLINTBEGIN
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
28 ModalToolContainer& operator=(ModalToolContainer const&);
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 // vIndex: 0
36 virtual ~ModalToolContainer() /*override*/ = default;
37
38 // vIndex: 1
39 virtual void clear() /*override*/;
40 // NOLINTEND
41
42public:
43 // member functions
44 // NOLINTBEGIN
45 MCNAPI bool _createTool(::std::string const& id, ::Json::Value const& payload);
46
47 MCNAPI void _onSelectedToolUpdated(::Json::Value const& current, ::Json::Value const& prev);
48
49 MCNAPI void _onToolCreated(::std::string const& id);
50
51 MCNAPI void _onToolDestroyed(::std::string const& id);
52
53 MCNAPI void _onToolUpdated(::std::string const& id, ::std::string const& propName);
54
55 MCNAPI bool _removeTool(::std::string const& id);
56
57 MCNAPI ::Json::Value getDataPayload(::Editor::DataStore::PayloadDescription const& desc) const;
58
59 MCNAPI ::Scripting::Result_deprecated<void> handleDataEvent(
60 ::Editor::DataStore::EventType eventType,
61 ::Json::Value const& payload,
63 );
64
65 MCNAPI ::Scripting::Result_deprecated<void> handleSelectedToolEvent(
66 ::Editor::DataStore::EventType eventType,
67 ::Json::Value const& payload,
68 bool isNetworkEvent
69 );
70 // NOLINTEND
71
72public:
73 // static variables
74 // NOLINTBEGIN
75 MCNAPI static ::std::add_lvalue_reference_t<char const[]> TAG_DATA();
76
77 MCNAPI static ::std::add_lvalue_reference_t<char const[]> TAG_SELECTED_TOOL();
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCNAPI void $clear();
84 // NOLINTEND
85
86public:
87 // vftables
88 // NOLINTBEGIN
89 MCNAPI static void** $vftable();
90 // NOLINTEND
91};
92
93} // namespace Editor::DataStore
Definition Container.h:7
Definition ModalToolContainer.h:18
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)
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::Json::Value getDataPayload(::Editor::DataStore::PayloadDescription const &desc) const
Definition Value.h:16
Definition PayloadDescription.h:7
Definition Alias.h:14