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
82 ) const;
83
84 MCNAPI ::WeakRef<::Editor::Prefabs::PrefabDBTemplateStructureRef>
85 getStructureRef(::mce::UUID const& prefabStructureId);
86
88
89 MCNAPI ::Editor::Prefabs::PrefabDBTemplateLoader::v1::TemplateData saveToFileData() const;
90
91 MCNAPI void setDisplayName(::std::string const& displayName);
92
93 MCNAPI void setName(::std::string const& name);
94 // NOLINTEND
95
96public:
97 // constructor thunks
98 // NOLINTBEGIN
99 MCNAPI void* $ctor(
100 ::Editor::Prefabs::PrefabSource source,
102 );
103
104 MCNAPI void* $ctor(
105 ::std::string const& name,
106 ::std::string const& displayName,
107 ::std::string const& description,
108 ::std::string const& notes,
109 ::std::vector<::std::string> const& tags,
110 ::Editor::Prefabs::PrefabSource source
111 );
112 // NOLINTEND
113};
114
115} // 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 void setName(::std::string const &name)
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 setDisplayName(::std::string const &displayName)
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 const >)> callback) const
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:8
Definition Alias.h:14