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

#include <SceneSerializer.h>

Static Public Member Functions

static bool Save (const Scene &scene, const std::filesystem::path &path)
static bool Load (Scene &scene, const std::filesystem::path &path, const std::shared_ptr< Mesh > &defaultMesh, const std::shared_ptr< Material > &defaultMaterial)

Detailed Description

Definition at line 16 of file SceneSerializer.h.

Member Function Documentation

◆ Load()

bool NoJob::SceneSerializer::Load ( Scene & scene,
const std::filesystem::path & path,
const std::shared_ptr< Mesh > & defaultMesh,
const std::shared_ptr< Material > & defaultMaterial )
static

Definition at line 491 of file SceneSerializer.cpp.

References NoJob::Entity::AddComponent(), NoJob::AnimatorComponent::Animation, NoJob::ParticleSystemComponent::BlendMode, NoJob::Bool, NoJob::ScriptFieldValue::Bool, NoJob::PhysicsMaterial::Bounciness, NoJob::DirectionalLightComponent::CastShadows, NoJob::PointLightComponent::CastShadows, NoJob::SpotLightComponent::CastShadows, NoJob::AnimatorComponent::ClipIndex, NoJob::AudioSourceComponent::ClipPath, NoJob::DirectionalLightComponent::Color, NoJob::PointLightComponent::Color, NoJob::SpotLightComponent::Color, NoJob::ParticleSystemComponent::ConeAngle, NoJob::Scene::CreateEntity(), NoJob::PerceptionComponent::DebugDraw, NoJob::EntityLayers::Default, NoJob::NavAgentComponent::Destination, NoJob::Scene::DestroyEntity(), NoJob::PerceptionComponent::DetectionMask, NoJob::PerceptionComponent::DetectionRadius, NoJob::ParticleSystemComponent::Direction, NoJob::AudioSourceComponent::DopplerFactor, NoJob::ParticleSystemComponent::Duration, NoJob::ParticleSystemComponent::EmissionRate, NoJob::AudioListenerComponent::Enabled, NoJob::NativeScriptComponent::Enabled, NoJob::NavAgentComponent::Enabled, NoJob::PerceptionComponent::Enabled, NoJob::ParticleSystemComponent::EndColor, NoJob::ParticleSystemComponent::EndSizeMultiplier, NoJob::PerceptionComponent::EyeHeight, NoJob::PerceptionComponent::FieldOfView, NoJob::NativeScriptComponent::Fields, NoJob::Float, NoJob::ScriptFieldValue::Float, NoJob::PhysicsMaterial::Friction, NoJob::Scene::GetAdditionalNativeScripts(), NoJob::Entity::GetComponent(), NoJob::Scene::GetEntities(), NoJob::Entity::GetHandle(), NoJob::ParticleSystemComponent::Gravity, NoJob::Entity::HasComponent(), NoJob::NavAgentComponent::HasDestination, NoJob::CapsuleColliderComponent::Height, NoJob::SpotLightComponent::InnerAngle, NoJob::Int, NoJob::ScriptFieldValue::Int, NoJob::DirectionalLightComponent::Intensity, NoJob::PointLightComponent::Intensity, NoJob::SpotLightComponent::Intensity, NoJob::BoxColliderComponent::IsTrigger, NoJob::CapsuleColliderComponent::IsTrigger, NoJob::SphereColliderComponent::IsTrigger, NoJob::ParticleSystemComponent::LifetimeRandom, NoJob::AnimationAsset::Load(), NoJob::AssetManager::LoadMesh(), NoJob::AssetManager::LoadTexture(), NoJob::AnimatorComponent::Loop, NoJob::AudioSourceComponent::Loop, NoJob::ParticleSystemComponent::Loop, NoJob::ScriptFieldValue::MakeFloat(), NoJob::ScriptFieldValue::MakeVec3(), NoJob::RigidbodyComponent::Mass, NoJob::BoxColliderComponent::Material, NoJob::CapsuleColliderComponent::Material, NoJob::SphereColliderComponent::Material, NoJob::AudioSourceComponent::MaxDistance, NoJob::EntityLayers::MaxLayers, NoJob::ParticleSystemComponent::MaxParticles, NoJob::PerceptionComponent::MemoryDuration, NoJob::Material::Metallic(), NoJob::AudioSourceComponent::MinDistance, NoJob::CameraComponent::OrthographicFar, NoJob::CameraComponent::OrthographicNear, NoJob::CameraComponent::OrthographicSize, NoJob::SpotLightComponent::OuterAngle, NoJob::CameraComponent::PerspectiveFar, NoJob::CameraComponent::PerspectiveFOV, NoJob::CameraComponent::PerspectiveNear, NoJob::AudioSourceComponent::Pitch, NoJob::AnimatorComponent::Playing, NoJob::ParticleSystemComponent::Playing, NoJob::AudioSourceComponent::PlayOnAwake, NoJob::CameraComponent::Primary, NoJob::CameraComponent::ProjectionType, NoJob::CapsuleColliderComponent::Radius, NoJob::SphereColliderComponent::Radius, NoJob::PointLightComponent::Range, NoJob::SpotLightComponent::Range, NoJob::NavAgentComponent::RepathInterval, NoJob::NativeScriptComponent::ScriptName, NoJob::Scene::SetParent(), NoJob::DirectionalLightComponent::ShadowBias, NoJob::PointLightComponent::ShadowBias, NoJob::SpotLightComponent::ShadowBias, NoJob::ParticleSystemComponent::Shape, NoJob::ParticleSystemComponent::ShapeRadius, NoJob::BoxColliderComponent::Size, NoJob::ParticleSystemComponent::SizeRandom, NoJob::AudioSourceComponent::SpatialBlend, NoJob::AnimatorComponent::Speed, NoJob::NavAgentComponent::Speed, NoJob::ParticleSystemComponent::SpeedRandom, NoJob::ParticleSystemComponent::StartColor, NoJob::ParticleSystemComponent::StartLifetime, NoJob::ParticleSystemComponent::StartSize, NoJob::ParticleSystemComponent::StartSpeed, NoJob::NavAgentComponent::StoppingDistance, NoJob::String, NoJob::ScriptFieldValue::String, NoJob::ParticleSystemComponent::TexturePath, NoJob::AnimatorComponent::TimeSeconds, NoJob::RigidbodyComponent::Type, NoJob::ScriptFieldValue::Type, NoJob::PerceptionComponent::UpdateInterval, NoJob::RigidbodyComponent::UseGravity, NoJob::ScriptFieldValue::Vec3, NoJob::AudioSourceComponent::Volume, and NoJob::Log::Warn().

Referenced by main().

◆ Save()


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