LeviLamina
Loading...
Searching...
No Matches
PrefabDBTemplate.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/editor/OwnerPtrIterator.h"
7#include "mc/common/editor/PrefabSource.h"
8#include "mc/common/editor/PrefabTemplateErrorState.h"
9#include "mc/deps/game_refs/EnableGetWeakRef.h"
10#include "mc/deps/game_refs/OwnerPtr.h"
11#include "mc/deps/game_refs/StackRefResult.h"
12#include "mc/deps/game_refs/WeakRef.h"
13#include "mc/util/Mirror.h"
14#include "mc/util/Rotation.h"
15
16// auto generated forward declare list
17// clang-format off
18class Vec3;
19namespace Editor { class ServiceProviderCollection; }
20namespace Editor::Prefabs { class PrefabDBTemplateStructureRef; }
21namespace Editor::Prefabs::PrefabDBTemplateLoader::v1 { struct TemplateData; }
22namespace mce { class UUID; }
23// clang-format on
24
25namespace Editor::Prefabs {
26
27class PrefabDBTemplate : public ::std::enable_shared_from_this<::Editor::Prefabs::PrefabDBTemplate>,
28 public ::EnableGetWeakRef<::Editor::Prefabs::PrefabDBTemplate> {
29public:
30 // member variables
31 // NOLINTBEGIN
43 // NOLINTEND
44
45public:
46 // prevent constructor by default
47 PrefabDBTemplate& operator=(PrefabDBTemplate const&);
48 PrefabDBTemplate(PrefabDBTemplate const&);
49 PrefabDBTemplate();
50
51public:
52 // member functions
53 // NOLINTBEGIN
55 ::Editor::Prefabs::PrefabSource source,
57 );
58
60 ::std::string const& name,
61 ::std::string const& displayName,
62 ::std::string const& description,
63 ::std::string const& notes,
64 ::std::vector<::std::string> const& tags,
65 ::Editor::Prefabs::PrefabSource source
66 );
67
68 MCNAPI ::WeakRef<::Editor::Prefabs::PrefabDBTemplateStructureRef> addStructureRef(
69 ::mce::UUID const& structureTemplateId,
70 ::Vec3 const& instanceOffset,
71 ::Rotation instanceRotation,
72 ::Mirror instanceMirror,
73 ::Vec3 const& structureSize,
74 ::Vec3 const& structureOffset,
75 ::Vec3 const& structureNormalizedOrigin
76 );
77
78 MCNAPI void clearDirty();
79
80 MCNAPI bool clone(::Editor::Prefabs::PrefabDBTemplate const& other);
81
84 );
85
86 MCNAPI int getDependentInstanceCount() const;
87
88 MCNAPI ::std::string const& getDescription() const;
89
90 MCNAPI ::std::string const& getDisplayName() const;
91
92 MCNAPI ::mce::UUID const& getId() const;
93
94 MCNAPI ::std::string const& getName() const;
95
96 MCNAPI ::std::string const& getNotes() const;
97
98 MCNAPI ::Editor::Prefabs::PrefabSource getSource() const;
99
100 MCNAPI ::WeakRef<::Editor::Prefabs::PrefabDBTemplateStructureRef const>
101 getStructureRef(::mce::UUID const& prefabStructureId) const;
102
103 MCNAPI ::WeakRef<::Editor::Prefabs::PrefabDBTemplateStructureRef>
104 getStructureRef(::mce::UUID const& prefabStructureId);
105
106 MCNAPI ::std::vector<::std::string> const& getTags() const;
107
108 MCNAPI ::WeakRef<::Editor::Prefabs::PrefabDBTemplate> getWeakRef();
109
110 MCNAPI bool isDirty() const;
111
112 MCNAPI bool isReadOnly() const;
113
115
116 MCNAPI ::Editor::Prefabs::PrefabDBTemplateLoader::v1::TemplateData saveToFileData() const;
117
118 MCNAPI void setDescription(::std::string const& description);
119
120 MCNAPI void setDisplayName(::std::string const& displayName);
121
122 MCNAPI void setName(::std::string const& name);
123
124 MCNAPI void setNotes(::std::string const& notes);
125
126 MCNAPI void setTags(::std::vector<::std::string> const& tags);
127
128 MCNAPI ::Editor::Prefabs::OwnerPtrIterator<
132
133 MCNAPI ::Editor::Prefabs::OwnerPtrIterator<
137
138 MCNAPI ::Editor::Prefabs::PrefabTemplateErrorState validate(::Editor::ServiceProviderCollection&);
139
141 // NOLINTEND
142
143public:
144 // constructor thunks
145 // NOLINTBEGIN
146 MCNAPI void* $ctor(
147 ::Editor::Prefabs::PrefabSource source,
149 );
150
151 MCNAPI void* $ctor(
152 ::std::string const& name,
153 ::std::string const& displayName,
154 ::std::string const& description,
155 ::std::string const& notes,
156 ::std::vector<::std::string> const& tags,
157 ::Editor::Prefabs::PrefabSource source
158 );
159 // NOLINTEND
160
161public:
162 // destructor thunk
163 // NOLINTBEGIN
164 MCNAPI void $dtor();
165 // NOLINTEND
166};
167
168} // namespace Editor::Prefabs
Definition PrefabDBTemplateStructureRef.h:21
Definition PrefabDBTemplate.h:28
MCAPI::std::string const & getName() const
MCAPI ::std::vector<::std::string > const & getTags() const
MCAPI void setDescription(::std::string const &description)
MCAPI PrefabDBTemplate(::Editor::Prefabs::PrefabSource source, ::Editor::Prefabs::PrefabDBTemplateLoader::v1::TemplateData const &fileData)
MCAPI void setName(::std::string const &name)
MCAPI int getDependentInstanceCount() const
MCAPI::mce::UUID const & getId() const
MCAPI bool removeStructureRef(::WeakRef<::Editor::Prefabs::PrefabDBTemplateStructureRef > structureRef)
MCAPI::Editor::Prefabs::PrefabSource getSource() const
MCAPI void * $ctor(::Editor::Prefabs::PrefabSource source, ::Editor::Prefabs::PrefabDBTemplateLoader::v1::TemplateData const &fileData)
MCAPI::Editor::Prefabs::PrefabDBTemplateLoader::v1::TemplateData saveToFileData() const
MCAPI void setDisplayName(::std::string const &displayName)
MCAPI ::Editor::Prefabs::OwnerPtrIterator< ::Editor::Prefabs::PrefabDBTemplateStructureRef const, ::OwnerPtr<::Editor::Prefabs::PrefabDBTemplateStructureRef > > structureRefcEnd() const
MCAPI ::WeakRef<::Editor::Prefabs::PrefabDBTemplate > getWeakRef()
MCAPI::std::string const & getDescription() const
MCAPI::std::string const & getDisplayName() const
MCAPI ::WeakRef<::Editor::Prefabs::PrefabDBTemplateStructureRef const > getStructureRef(::mce::UUID const &prefabStructureId) const
MCAPI void * $ctor(::std::string const &name, ::std::string const &displayName, ::std::string const &description, ::std::string const &notes, ::std::vector<::std::string > const &tags, ::Editor::Prefabs::PrefabSource source)
MCAPI void forEachStructureRef(::std::function< void(::StackRefResult<::Editor::Prefabs::PrefabDBTemplateStructureRef >)> callback)
MCAPI::std::string const & getNotes() const
MCAPI bool clone(::Editor::Prefabs::PrefabDBTemplate const &other)
MCAPI ::WeakRef<::Editor::Prefabs::PrefabDBTemplateStructureRef > getStructureRef(::mce::UUID const &prefabStructureId)
MCAPI void setNotes(::std::string const &notes)
MCAPI ::Editor::Prefabs::OwnerPtrIterator< ::Editor::Prefabs::PrefabDBTemplateStructureRef const, ::OwnerPtr<::Editor::Prefabs::PrefabDBTemplateStructureRef > > structureRefcBegin() const
MCAPI::Editor::Prefabs::PrefabTemplateErrorState validate(::Editor::ServiceProviderCollection &)
MCAPI ::WeakRef<::Editor::Prefabs::PrefabDBTemplateStructureRef > addStructureRef(::mce::UUID const &structureTemplateId, ::Vec3 const &instanceOffset, ::Rotation instanceRotation, ::Mirror instanceMirror, ::Vec3 const &structureSize, ::Vec3 const &structureOffset, ::Vec3 const &structureNormalizedOrigin)
MCAPI void setTags(::std::vector<::std::string > const &tags)
MCAPI PrefabDBTemplate(::std::string const &name, ::std::string const &displayName, ::std::string const &description, ::std::string const &notes, ::std::vector<::std::string > const &tags, ::Editor::Prefabs::PrefabSource source)
Definition ServiceProviderCollection.h:7
Definition EnableGetWeakRef.h:6
Definition OwnerPtr.h:7
Definition StackRefResult.h:7
Definition Vec3.h:10
Definition WeakRef.h:8
Definition UUID.h:7
Definition Alias.h:14