/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EnginePlugins/ParticlePlugin/Behavior/ParticleBehavior.cpp
32 строки
957 B
Jan Krassnigg
MSFT contribution: Made all #includes relative to their project (#448)
09 авг 2021, 23:45
Не верифицирован
09 авг 2021, 23:45
2b8da9c
Код
Авторство
О чём код?
#include <ParticlePlugin/ParticlePluginPCH.h> #include <Foundation/DataProcessing/Stream/ProcessingStreamGroup.h> #include <ParticlePlugin/Behavior/ParticleBehavior.h> EZ_BEGIN_DYNAMIC_REFLECTED_TYPE(ezParticleBehaviorFactory, 1, ezRTTINoAllocator) EZ_END_DYNAMIC_REFLECTED_TYPE; EZ_BEGIN_DYNAMIC_REFLECTED_TYPE(ezParticleBehavior, 1, ezRTTINoAllocator) EZ_END_DYNAMIC_REFLECTED_TYPE; ezParticleBehavior* ezParticleBehaviorFactory::CreateBehavior(ezParticleSystemInstance* pOwner) const { const ezRTTI* pRtti = GetBehaviorType(); ezParticleBehavior* pBehavior = pRtti->GetAllocator()->Allocate<ezParticleBehavior>(); pBehavior->Reset(pOwner); CopyBehaviorProperties(pBehavior, true); pBehavior->CreateRequiredStreams(); return pBehavior; } ezParticleBehavior::ezParticleBehavior() { // run after the initializers, before the types m_fPriority = 0.0f; } EZ_STATICLINK_FILE(ParticlePlugin, ParticlePlugin_Behavior_ParticleBehavior);