/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EnginePlugins/GameComponentsPlugin/Debugging/LineToComponent.h
41 строка
1 KB
C-Core
Improved alpha coverage algorithm and other fixes (#1472)
14 янв 2025, 16:19
Не верифицирован
14 янв 2025, 16:19
dff16ec
Код
Авторство
О чём код?
#pragma once #include <GameComponentsPlugin/GameComponentsDLL.h> #include <Core/World/Component.h> #include <Core/World/ComponentManager.h> using ezLineToComponentManager = ezComponentManagerSimple<class ezLineToComponent, ezComponentUpdateType::Always, ezBlockStorageType::FreeList, ezWorldUpdatePhase::PostTransform>; /// \brief Draws a line from its own position to the target object position class EZ_GAMECOMPONENTS_DLL ezLineToComponent : public ezComponent { EZ_DECLARE_COMPONENT_TYPE(ezLineToComponent, ezComponent, ezLineToComponentManager); ////////////////////////////////////////////////////////////////////////// // ezComponent public: virtual void SerializeComponent(ezWorldWriter& inout_stream) const override; virtual void DeserializeComponent(ezWorldReader& inout_stream) override; ////////////////////////////////////////////////////////////////////////// // ezLineToComponent public: ezLineToComponent(); ~ezLineToComponent(); const char* GetLineToTargetGuid() const; // [ property ] void SetLineToTargetGuid(const char* szTargetGuid); // [ property ] void SetLineToTarget(const ezGameObjectHandle& hTargetObject); // [ property ] const ezGameObjectHandle& GetLineToTarget() const { return m_hTargetObject; } // [ property ] ezColor m_LineColor; // [ property ] void Update(); protected: ezGameObjectHandle m_hTargetObject; };