1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-11-23 22:55:37 +01:00
GiantsTools/Sdk/Include/GameObject/Public/Components/JetpackDebug.h

26 lines
904 B
C
Raw Normal View History

2021-01-24 00:40:09 +01:00
#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
}