LeviLamina
Loading...
Searching...
No Matches
EntityOperation.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/editor/IOperation.h"
7#include "mc/deps/scripting/binding_type/EnumBindingBuilder.h"
8#include "mc/deps/scripting/runtime/Result.h"
9
10// auto generated forward declare list
11// clang-format off
12class Level;
13namespace Editor { class ServiceProviderCollection; }
14// clang-format on
15
16namespace Editor::Transactions {
17
19public:
20 // EntityOperation inner types define
21 enum class OperationType : int {
22 Create = 0,
23 Delete = 1,
24 };
25
26public:
27 // member variables
28 // NOLINTBEGIN
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 EntityOperation& operator=(EntityOperation const&);
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 // vIndex: 0
44 virtual ~EntityOperation() /*override*/ = default;
45
46 // vIndex: 1
47 virtual ::std::string_view getName() /*override*/;
48
49 // vIndex: 2
50 virtual ::Scripting::Result<void> _undo(::Editor::ServiceProviderCollection& services) /*override*/;
51
52 // vIndex: 3
53 virtual ::Scripting::Result<void> _redo(::Editor::ServiceProviderCollection& services) /*override*/;
54 // NOLINTEND
55
56public:
57 // member functions
58 // NOLINTBEGIN
59 MCAPI ::Scripting::Result<void> _loadEntity(::Level* level);
60
61 MCAPI ::Scripting::Result<void> _performOperation(::Editor::ServiceProviderCollection& services, bool isUndo);
62
63 MCAPI ::Scripting::Result<void> _saveEntity(::Level* level);
64 // NOLINTEND
65
66public:
67 // static functions
68 // NOLINTBEGIN
69 MCAPI static ::Scripting::EnumBindingBuilder<
70 ::Editor::Transactions::EntityOperation::OperationType,
71 ::Editor::Transactions::EntityOperation::OperationType>
72 bindOperationType();
73 // NOLINTEND
74
75public:
76 // static variables
77 // NOLINTBEGIN
78 MCAPI static ::std::string const& DEFAULT_OPERATION_NAME();
79 // NOLINTEND
80
81public:
82 // destructor thunk
83 // NOLINTBEGIN
84
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCAPI ::std::string_view $getName();
91
92 MCAPI ::Scripting::Result<void> $_undo(::Editor::ServiceProviderCollection& services);
93
94 MCAPI ::Scripting::Result<void> $_redo(::Editor::ServiceProviderCollection& services);
95 // NOLINTEND
96
97public:
98 // vftables
99 // NOLINTBEGIN
100 MCAPI static void** $vftable();
101 // NOLINTEND
102};
103
104} // namespace Editor::Transactions
Definition ServiceProviderCollection.h:7
Definition EntityOperation.h:18
Definition IOperation.h:15
Definition Level.h:234
Definition Alias.h:14