/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Engine/Core/World/WorldDesc.h
32 строки
2 KB
C-Core
Render Pipeline Blackboards (#1974)
06 июл 2026, 13:55
Не верифицирован
06 июл 2026, 13:55
5715bdc
Код
Авторство
О чём код?
#pragma once #include <Foundation/Strings/HashedString.h> #include <Foundation/Time/Clock.h> #include <Foundation/Types/SharedPtr.h> #include <Foundation/Types/UniquePtr.h> #include <Core/Utils/Blackboard.h> #include <Core/World/CoordinateSystem.h> #include <Core/World/SpatialSystem.h> /// \brief Describes the initial state of a world. struct ezWorldDesc { EZ_DECLARE_POD_TYPE(); ezWorldDesc(ezStringView sWorldName) { m_sName.Assign(sWorldName); } ezHashedString m_sName; ///< Name of the world for identification ezUInt64 m_uiRandomNumberGeneratorSeed = 0; ///< Seed for the world's random number generator (0 = use current time) ezUniquePtr<ezSpatialSystem> m_pSpatialSystem; ///< Custom spatial system to use for this world bool m_bAutoCreateSpatialSystem = true; ///< Automatically create a default spatial system if none is set bool m_bReportErrorWhenStaticObjectMoves = true; ///< Whether to log errors when objects marked as static change position ezSharedPtr<ezCoordinateSystemProvider> m_pCoordinateSystemProvider; ///< Optional provider for position-dependent coordinate systems ezUniquePtr<ezTimeStepSmoothing> m_pTimeStepSmoothing; ///< Custom time step smoothing (if nullptr, ezDefaultTimeStepSmoothing will be used) ezSharedPtr<ezBlackboard> m_pBlackboard; ///< Custom blackboard to use for this world (if nullptr, a new blackboard will be created) ezTime m_MaxComponentInitializationTimePerFrame = ezTime::MakeFromHours(10000); ///< Maximum time to spend on component initialization per frame };