/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Engine/GameEngine/XR/SpatialAnchorComponent.h
44 строки
1 KB
Ingrater
clang-tidy modernize-use-using check (#956)
22 май 2023, 17:30
Не верифицирован
22 май 2023, 17:30
01da71c
Код
Авторство
О чём код?
#pragma once #include <Core/World/Component.h> #include <Core/World/World.h> #include <GameEngine/GameEngineDLL.h> #include <GameEngine/XR/XRSpatialAnchorsInterface.h> ////////////////////////////////////////////////////////////////////////// using ezSpatialAnchorComponentManager = ezComponentManagerSimple<class ezSpatialAnchorComponent, ezComponentUpdateType::WhenSimulating>; class EZ_GAMEENGINE_DLL ezSpatialAnchorComponent : public ezComponent { EZ_DECLARE_COMPONENT_TYPE(ezSpatialAnchorComponent, ezComponent, ezSpatialAnchorComponentManager); ////////////////////////////////////////////////////////////////////////// // ezComponent public: virtual void SerializeComponent(ezWorldWriter& inout_stream) const override; virtual void DeserializeComponent(ezWorldReader& inout_stream) override; protected: virtual void OnSimulationStarted() override; ////////////////////////////////////////////////////////////////////////// // ezSpatialAnchorComponent public: ezSpatialAnchorComponent(); ~ezSpatialAnchorComponent(); /// \brief Attempts to create a new anchor at the given location. /// /// On failure, the existing anchor will continue to be used. /// On success, the new anchor will be used and the new location. ezResult RecreateAnchorAt(const ezTransform& position); protected: void Update(); private: ezXRSpatialAnchorID m_AnchorID; };