NoJobEngine
2.0.7
Toggle main menu visibility
Loading...
Searching...
No Matches
PrefabSerializer.h
Go to the documentation of this file.
1
6
#pragma once
7
#include "
Engine/Scene/Entity.h
"
8
#include <filesystem>
9
#include <memory>
10
namespace
NoJob
{
11
class
Scene
;
class
Mesh
;
class
Material
;
12
class
PrefabSerializer
{
13
public
:
14
static
bool
Save
(
Entity
root,
const
std::filesystem::path&);
15
static
Entity
Instantiate
(
Scene
&,
const
std::filesystem::path&,
const
std::shared_ptr<Mesh>&,
const
std::shared_ptr<Material>&);
16
static
bool
Apply
(
Entity
instance,
const
std::filesystem::path&);
17
static
Entity
Revert
(
Entity
instance,
const
std::shared_ptr<Mesh>& fallback,
const
std::shared_ptr<Material>& base);
18
};
19
}
Entity.h
Entity declarations for the Scenes and Native Scripting subsystem.
NoJob::Entity
Definition
Entity.h:16
NoJob::Material
Definition
Material.h:23
NoJob::Mesh
Definition
Mesh.h:38
NoJob::PrefabSerializer
Definition
PrefabSerializer.h:12
NoJob::PrefabSerializer::Instantiate
static Entity Instantiate(Scene &, const std::filesystem::path &, const std::shared_ptr< Mesh > &, const std::shared_ptr< Material > &)
Definition
PrefabSerializer.cpp:134
NoJob::PrefabSerializer::Revert
static Entity Revert(Entity instance, const std::shared_ptr< Mesh > &fallback, const std::shared_ptr< Material > &base)
Definition
PrefabSerializer.cpp:281
NoJob::PrefabSerializer::Apply
static bool Apply(Entity instance, const std::filesystem::path &)
Definition
PrefabSerializer.cpp:279
NoJob::PrefabSerializer::Save
static bool Save(Entity root, const std::filesystem::path &)
Definition
PrefabSerializer.cpp:122
NoJob::Scene
Definition
Scene.h:31
NoJob
Definition
BTActionNode.h:13
Engine
Assets
PrefabSerializer.h
Generated by
1.18.0