3#include "mc/_HeaderOutputPredefine.h"
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"
17namespace Editor::Prefabs::PrefabDBTemplateLoader::v1 {
struct TemplateData; }
18namespace mce {
class UUID; }
21namespace Editor::Prefabs {
23class PrefabDBTemplate :
public ::std::enable_shared_from_this<::Editor::Prefabs::PrefabDBTemplate>,
43 PrefabDBTemplate& operator=(PrefabDBTemplate
const&);
44 PrefabDBTemplate(PrefabDBTemplate
const&);
51 ::Editor::Prefabs::PrefabSource source,
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
64 MCNAPI ::WeakRef<::Editor::Prefabs::PrefabDBTemplateStructureRef>
addStructureRef(
66 ::Vec3 const& instanceOffset,
67 ::Rotation instanceRotation,
68 ::Mirror instanceMirror,
69 ::Vec3 const& structureSize,
70 ::Vec3 const& structureOffset,
71 ::Vec3 const& structureNormalizedOrigin
80 MCNAPI ::WeakRef<::Editor::Prefabs::PrefabDBTemplateStructureRef>
87 MCNAPI ::Editor::Prefabs::PrefabDBTemplateLoader::v1::TemplateData
saveToFileData()
const;
96 ::Editor::Prefabs::PrefabSource source,
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
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 ~PrefabDBTemplate()
MCAPI void * $ctor(::std::string const &name, ::std::string const &displayName, ::std::string const &description, ::std::string const ¬es, ::std::vector<::std::string > const &tags, ::Editor::Prefabs::PrefabSource source)
MCAPI void forEachStructureRef(::std::function< void(::StackRefResult<::Editor::Prefabs::PrefabDBTemplateStructureRef >)> callback)
MCAPI bool isDirty() const
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 ¬es, ::std::vector<::std::string > const &tags, ::Editor::Prefabs::PrefabSource source)
Definition EnableGetWeakRef.h:6
Definition StackRefResult.h:7
Definition TemplateData.h:13