LeviLamina
Loading...
Searching...
No Matches
SelectionServiceProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/game_refs/WeakRef.h"
7#include "mc/deps/scripting/runtime/Result_deprecated.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Editor { class ProjectRegion; }
12namespace Editor::Selection { class SelectionContainerEntity; }
13namespace Editor::Selection { class SelectionContainerVolume; }
14// clang-format on
15
16namespace Editor::Services {
17
19public:
20 // SelectionServiceProvider inner types declare
21 // clang-format off
22 struct ManifestEntry;
23 struct ManifestState;
24 // clang-format on
25
26 // SelectionServiceProvider inner types define
27 struct ManifestEntry {
28 public:
29 // member variables
30 // NOLINTBEGIN
33 // NOLINTEND
34
35 public:
36 // prevent constructor by default
37 ManifestEntry& operator=(ManifestEntry const&);
38 ManifestEntry(ManifestEntry const&);
39 ManifestEntry();
40
41 public:
42 // member functions
43 // NOLINTBEGIN
45 // NOLINTEND
46
47 public:
48 // destructor thunk
49 // NOLINTBEGIN
50 MCNAPI void $dtor();
51 // NOLINTEND
52 };
53
54 struct ManifestState {
55 public:
56 // member variables
57 // NOLINTBEGIN
64 // NOLINTEND
65
66 public:
67 // prevent constructor by default
68 ManifestState& operator=(ManifestState const&);
69 ManifestState(ManifestState const&);
70 ManifestState();
71 };
72
73public:
74 // virtual functions
75 // NOLINTBEGIN
76 virtual ~SelectionServiceProvider() = default;
77
78 virtual ::Editor::Selection::SelectionContainerVolume const& containerVolume() const = 0;
79
80 virtual ::Editor::Selection::SelectionContainerEntity const& containerEntity() const = 0;
81
82 virtual ::Editor::Selection::SelectionContainerVolume& containerVolumeNonConst() = 0;
83
84 virtual ::Editor::Selection::SelectionContainerEntity& containerEntityNonConst() = 0;
85
86 virtual ::WeakRef<::Editor::ProjectRegion> getVolumeRegion() const = 0;
87
88 virtual uint64 generateManifest() = 0;
89
90 virtual uint64 generateManifestWithCallback(
91 ::std::function<
93 callback
94 ) = 0;
95
96 virtual ::Editor::Services::SelectionServiceProvider::ManifestState const& getCurrentManifest() const = 0;
97
98 virtual void deselectBlocksAsync(
99 ::std::string const& blockIdentifier,
100 ::std::function<void(::Scripting::Result_deprecated<uint64> const&)> callback
101 ) = 0;
102
103 virtual void replaceBlocksAsync(
104 ::std::string const& fromBlockIdentifier,
105 ::std::string const& toBlockIdentifier,
106 ::std::function<void(::Scripting::Result_deprecated<uint64> const&)> callback
107 ) = 0;
108 // NOLINTEND
109
110public:
111 // virtual function thunks
112 // NOLINTBEGIN
113
114 // NOLINTEND
115
116public:
117 // vftables
118 // NOLINTBEGIN
119 MCNAPI static void** $vftable();
120 // NOLINTEND
121};
122
123} // namespace Editor::Services
Definition ProjectRegion.h:28
Definition SelectionContainerEntity.h:15
Definition SelectionContainerVolume.h:21
Definition SelectionServiceProvider.h:18
Definition Result_deprecated.h:8
Definition SelectionServiceProvider.h:27
Definition SelectionServiceProvider.h:54
Definition Alias.h:14