NoJobEngine 2.0.7
Loading...
Searching...
No Matches
NoJob::PrefabSerializer Class Reference

#include <PrefabSerializer.h>

Static Public Member Functions

static bool Save (Entity root, const std::filesystem::path &)
static Entity Instantiate (Scene &, const std::filesystem::path &, const std::shared_ptr< Mesh > &, const std::shared_ptr< Material > &)
static bool Apply (Entity instance, const std::filesystem::path &)
static Entity Revert (Entity instance, const std::shared_ptr< Mesh > &fallback, const std::shared_ptr< Material > &base)

Detailed Description

Definition at line 12 of file PrefabSerializer.h.

Member Function Documentation

◆ Apply()

bool NoJob::PrefabSerializer::Apply ( Entity instance,
const std::filesystem::path & p )
static

Definition at line 279 of file PrefabSerializer.cpp.

References Save().

◆ Instantiate()

Entity NoJob::PrefabSerializer::Instantiate ( Scene & s,
const std::filesystem::path & p,
const std::shared_ptr< Mesh > & fallback,
const std::shared_ptr< Material > & base )
static

Definition at line 134 of file PrefabSerializer.cpp.

References NoJob::Entity::AddComponent(), NoJob::AnimatorComponent::Animation, NoJob::ParticleSystemComponent::BlendMode, NoJob::Bool, NoJob::ScriptFieldValue::Bool, NoJob::AnimatorComponent::ClipIndex, NoJob::AudioSourceComponent::ClipPath, NoJob::ParticleSystemComponent::ConeAngle, NoJob::Scene::CreateEntity(), NoJob::ParticleSystemComponent::Direction, NoJob::AudioSourceComponent::DopplerFactor, NoJob::ParticleSystemComponent::Duration, NoJob::ParticleSystemComponent::EmissionRate, NoJob::AudioListenerComponent::Enabled, NoJob::NativeScriptComponent::Enabled, NoJob::ParticleSystemComponent::EndColor, NoJob::ParticleSystemComponent::EndSizeMultiplier, NoJob::NativeScriptComponent::Fields, NoJob::Float, NoJob::ScriptFieldValue::Float, NoJob::Entity::GetComponent(), NoJob::ParticleSystemComponent::Gravity, NoJob::Int, NoJob::ScriptFieldValue::Int, NoJob::ParticleSystemComponent::LifetimeRandom, NoJob::AnimationAsset::Load(), NoJob::AssetManager::LoadMesh(), NoJob::AnimatorComponent::Loop, NoJob::AudioSourceComponent::Loop, NoJob::ParticleSystemComponent::Loop, NoJob::AudioSourceComponent::MaxDistance, NoJob::ParticleSystemComponent::MaxParticles, NoJob::AudioSourceComponent::MinDistance, NoJob::AudioSourceComponent::Pitch, NoJob::AnimatorComponent::Playing, NoJob::ParticleSystemComponent::Playing, NoJob::AudioSourceComponent::PlayOnAwake, NoJob::TransformComponent::Position, NoJob::AssetManager::ResolveProjectPath(), NoJob::NativeScriptComponent::ScriptName, NoJob::Scene::SetParent(), NoJob::ParticleSystemComponent::Shape, NoJob::ParticleSystemComponent::ShapeRadius, NoJob::ParticleSystemComponent::SizeRandom, NoJob::AudioSourceComponent::SpatialBlend, NoJob::AnimatorComponent::Speed, NoJob::ParticleSystemComponent::SpeedRandom, NoJob::ParticleSystemComponent::StartColor, NoJob::ParticleSystemComponent::StartLifetime, NoJob::ParticleSystemComponent::StartSize, NoJob::ParticleSystemComponent::StartSpeed, NoJob::String, NoJob::ScriptFieldValue::String, NoJob::ParticleSystemComponent::TexturePath, NoJob::AnimatorComponent::TimeSeconds, NoJob::ScriptFieldValue::Type, NoJob::ScriptFieldValue::Vec3, NoJob::AudioSourceComponent::Volume, and NoJob::Log::Warn().

Referenced by NoJob::ProjectPanel::Draw(), and Revert().

◆ Revert()

Entity NoJob::PrefabSerializer::Revert ( Entity instance,
const std::shared_ptr< Mesh > & fallback,
const std::shared_ptr< Material > & base )
static

◆ Save()

bool NoJob::PrefabSerializer::Save ( Entity root,
const std::filesystem::path & p )
static

Definition at line 122 of file PrefabSerializer.cpp.

Referenced by Apply(), and NoJob::ProjectAssetOperations::CreatePrefab().


The documentation for this class was generated from the following files: