NoJobEngine 2.0.7
Loading...
Searching...
No Matches
PrefabSerializer.h
Go to the documentation of this file.
1
6#pragma once
8#include <filesystem>
9#include <memory>
10namespace NoJob {
11class Scene; class Mesh; class Material;
13public:
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 declarations for the Scenes and Native Scripting subsystem.
static Entity Instantiate(Scene &, const std::filesystem::path &, const std::shared_ptr< Mesh > &, const std::shared_ptr< Material > &)
static Entity Revert(Entity instance, const std::shared_ptr< Mesh > &fallback, const std::shared_ptr< Material > &base)
static bool Apply(Entity instance, const std::filesystem::path &)
static bool Save(Entity root, const std::filesystem::path &)