/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EnginePlugins/ProcGenPlugin/Components/Implementation/PlacementTile.h
51 строка
1 KB
C-Core
Various Proc Gen Improvements (#1705)
30 окт 2025, 14:32
Не верифицирован
30 окт 2025, 14:32
ac34f29
Код
Авторство
О чём код?
#pragma once #include <Core/World/Declarations.h> #include <Foundation/Types/UniquePtr.h> #include <ProcGenPlugin/Declarations.h> class ezPhysicsWorldModuleInterface; namespace ezProcGenInternal { class PlacementTile { public: PlacementTile(); PlacementTile(PlacementTile&& other); ~PlacementTile(); void Initialize(const PlacementTileDesc& desc, ezSharedPtr<const PlacementOutput>& ref_pOutput); void Deinitialize(ezWorld& ref_world); bool IsValid() const; const PlacementTileDesc& GetDesc() const; const PlacementOutput* GetOutput() const; ezArrayPtr<const ezGameObjectHandle> GetPlacedObjects() const; ezBoundingBox GetBoundingBox() const; ezColor GetDebugColor() const; void PreparePlacementData(const ezWorld* pWorld, const ezPhysicsWorldModuleInterface* pPhysicsModule, bool bDebugVisualization, PlacementData& ref_placementData); ezUInt32 PlaceObjects(ezWorld& ref_world, ezArrayPtr<const PlacementTransform> objectTransforms); private: PlacementTileDesc m_Desc; ezSharedPtr<const PlacementOutput> m_pOutput; struct State { enum Enum { Invalid, Initialized, Scheduled, Finished }; }; State::Enum m_State = State::Invalid; ezDynamicArray<ezGameObjectHandle> m_PlacedObjects; }; } // namespace ezProcGenInternal