/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EnginePlugins/ParticlePlugin/Effect/ParticleEffectDescriptor.h
42 строки
2 KB
C-Core
Various fixes and improvemts (#1272)
22 апр 2024, 23:43
Не верифицирован
22 апр 2024, 23:43
3fa4c5d
Код
Авторство
О чём код?
#pragma once #include <Foundation/Reflection/Reflection.h> #include <ParticlePlugin/Declarations.h> #include <ParticlePlugin/ParticlePluginDLL.h> class EZ_PARTICLEPLUGIN_DLL ezParticleEffectDescriptor final : public ezReflectedClass { EZ_ADD_DYNAMIC_REFLECTION(ezParticleEffectDescriptor, ezReflectedClass); public: ezParticleEffectDescriptor(); ~ezParticleEffectDescriptor(); void AddParticleSystem(ezParticleSystemDescriptor* pSystem) { m_ParticleSystems.PushBack(pSystem); } void RemoveParticleSystem(ezParticleSystemDescriptor* pSystem) { m_ParticleSystems.RemoveAndCopy(pSystem); } const ezHybridArray<ezParticleSystemDescriptor*, 4>& GetParticleSystems() const { return m_ParticleSystems; } void AddEventReaction(ezParticleEventReactionFactory* pSystem) { m_EventReactions.PushBack(pSystem); } void RemoveEventReaction(ezParticleEventReactionFactory* pSystem) { m_EventReactions.RemoveAndCopy(pSystem); } const ezHybridArray<ezParticleEventReactionFactory*, 4>& GetEventReactions() const { return m_EventReactions; } void Save(ezStreamWriter& inout_stream) const; void Load(ezStreamReader& inout_stream); void ClearSystems(); void ClearEventReactions(); ezEnum<ezEffectInvisibleUpdateRate> m_InvisibleUpdateRate; bool m_bSimulateInLocalSpace = false; bool m_bAlwaysShared = false; float m_fApplyInstanceVelocity = 0.0f; ezTime m_PreSimulateDuration; ezVec3U32 m_vNumWindSamples = ezVec3U32(1); ezMap<ezString, float> m_FloatParameters; ezMap<ezString, ezColor> m_ColorParameters; private: ezHybridArray<ezParticleSystemDescriptor*, 4> m_ParticleSystems; ezHybridArray<ezParticleEventReactionFactory*, 4> m_EventReactions; };