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 bool isDirty() const;
81
83
84 MCNAPI ::Editor::Prefabs::PrefabDBTemplateLoader::v1::TemplateData saveToFileData() const;
85
87 // NOLINTEND
88
89public:
90 // constructor thunks
91 // NOLINTBEGIN
92 MCNAPI void* $ctor(
93 ::Editor::Prefabs::PrefabSource source,
95 );
96
97 MCNAPI void* $ctor(
98 ::std::string const& name,
99 ::std::string const& displayName,
100 ::std::string const& description,
101 ::std::string const& notes,
102 ::std::vector<::std::string> const& tags,
103 ::Editor::Prefabs::PrefabSource source
104 );
105 // NOLINTEND
106
107public:
108 // destructor thunk
109 // NOLINTBEGIN
110 MCNAPI void $dtor();
111 // NOLINTEND
112};
113
114} // namespace Editor::Prefabs
Definition PrefabDBTemplateStructureRef.h:12
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 > 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