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/PrefabSource.h"
7#include "mc/deps/game_refs/EnableGetWeakRef.h"
8#include "mc/deps/game_refs/StackRefResult.h"
9#include "mc/deps/game_refs/WeakRef.h"
10#include "mc/util/Mirror.h"
11#include "mc/util/Rotation.h"
12
13// auto generated forward declare list
14// clang-format off
15class Vec3;
16namespace Editor::Prefabs { class PrefabDBTemplateStructureRef; }
17namespace Editor::Prefabs::PrefabDBTemplateLoader::v1 { struct TemplateData; }
18namespace mce { class UUID; }
19// clang-format on
20
21namespace Editor::Prefabs {
22
23class PrefabDBTemplate : public ::std::enable_shared_from_this<::Editor::Prefabs::PrefabDBTemplate>,
24 public ::EnableGetWeakRef<::Editor::Prefabs::PrefabDBTemplate> {
25public:
26 // member variables
27 // NOLINTBEGIN
39 // NOLINTEND
40
41public:
42 // prevent constructor by default
43 PrefabDBTemplate& operator=(PrefabDBTemplate const&);
44 PrefabDBTemplate(PrefabDBTemplate const&);
45 PrefabDBTemplate();
46
47public:
48 // member functions
49 // NOLINTBEGIN
51 ::Editor::Prefabs::PrefabSource source,
53 );
54
56 ::std::string const& name,
57 ::std::string const& displayName,
58 ::std::string const& description,
59 ::std::string const& notes,
60 ::std::vector<::std::string> const& tags,
61 ::Editor::Prefabs::PrefabSource source
62 );
63
64 MCNAPI ::WeakRef<::Editor::Prefabs::PrefabDBTemplateStructureRef> addStructureRef(
65 ::mce::UUID const& structureTemplateId,
66 ::Vec3 const& instanceOffset,
67 ::Rotation instanceRotation,
68 ::Mirror instanceMirror,
69 ::Vec3 const& structureSize,
70 ::Vec3 const& structureOffset,
71 ::Vec3 const& structureNormalizedOrigin
72 );
73
74 MCNAPI bool clone(::Editor::Prefabs::PrefabDBTemplate const& other);
75
78 );
79
80 MCNAPI ::WeakRef<::Editor::Prefabs::PrefabDBTemplateStructureRef>
81 getStructureRef(::mce::UUID const& prefabStructureId);
82
83 MCNAPI bool isDirty() const;
84
86
87 MCNAPI ::Editor::Prefabs::PrefabDBTemplateLoader::v1::TemplateData saveToFileData() const;
88
90 // NOLINTEND
91
92public:
93 // constructor thunks
94 // NOLINTBEGIN
95 MCNAPI void* $ctor(
96 ::Editor::Prefabs::PrefabSource source,
98 );
99
100 MCNAPI void* $ctor(
101 ::std::string const& name,
102 ::std::string const& displayName,
103 ::std::string const& description,
104 ::std::string const& notes,
105 ::std::vector<::std::string> const& tags,
106 ::Editor::Prefabs::PrefabSource source
107 );
108 // NOLINTEND
109
110public:
111 // destructor thunk
112 // NOLINTBEGIN
113 MCNAPI void $dtor();
114 // NOLINTEND
115};
116
117} // namespace Editor::Prefabs
Definition PrefabDBTemplateStructureRef.h:13
Definition PrefabDBTemplate.h:24
MCAPI PrefabDBTemplate(::Editor::Prefabs::PrefabSource source, ::Editor::Prefabs::PrefabDBTemplateLoader::v1::TemplateData const &fileData)
MCAPI bool removeStructureRef(::WeakRef<::Editor::Prefabs::PrefabDBTemplateStructureRef > structureRef)
MCAPI void * $ctor(::Editor::Prefabs::PrefabSource source, ::Editor::Prefabs::PrefabDBTemplateLoader::v1::TemplateData const &fileData)
MCAPI::Editor::Prefabs::PrefabDBTemplateLoader::v1::TemplateData saveToFileData() 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 bool clone(::Editor::Prefabs::PrefabDBTemplate const &other)
MCAPI ::WeakRef<::Editor::Prefabs::PrefabDBTemplateStructureRef > getStructureRef(::mce::UUID const &prefabStructureId)
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 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 EnableGetWeakRef.h:6
Definition StackRefResult.h:7
Definition Vec3.h:10
Definition WeakRef.h:8
Definition UUID.h:7
Definition Alias.h:14