1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-07-03 03:51:45 +02:00
GiantsTools/Sdk/Include/GameObject/Public/Components/JetpackDebug.h
2021-01-23 15:40:09 -08:00

26 lines
904 B
C++

#pragma once
#include "Jetpack.h"
namespace ECS
{
#ifdef ENABLE_DEBUG
template<>
inline void EntityComponentEditor<GameObj::Jetpack>(GameObj::Jetpack& component)
{
if (ImGui::TreeNode("Jetpack"))
{
EntityPropertyEditor("ThrustMaxHeight", component.ThrustParameters.ThrustMaxHeight);
EntityPropertyEditor("ThrustPower", component.ThrustParameters.ThrustPower);
EntityPropertyEditor("ThrustLowPct", component.ThrustParameters.ThrustLowPct);
EntityPropertyEditor("ThrustHighPct", component.ThrustParameters.ThrustHighPct);
EntityPropertyEditor("ThrustPowerMax", component.ThrustParameters.ThrustPowerMax);
EntityPropertyEditor("ThrustFwdSlowMax", component.ThrustParameters.ThrustDrowning);
EntityPropertyEditor("ThrustDrowning", component.ThrustParameters.ThrustFwdSlowMax);
EntityPropertyEditor("ThrustMode", component.ThrustControl);
ImGui::TreePop();
}
}
#endif
}